home *** CD-ROM | disk | FTP | other *** search
/ com!online 2005 April / com_0405_1.iso / opensource / Thunderbird Setup 1.0.exe / offline.xpi < prev    next >
PKZip Archive  |  2004-12-06  |  20.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: PKZip Archive (archive/zip).

You can browse this item here: offline.xpi

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert PKZip Archive (archive/zip) magic Supported
100% file Zip archive data, made by v2.3 UNIX, extract using at least v1.0, last modified, last modified Sun, Dec 06 2004 07:33:24, uncompressed size 0, method=store default
99% file Zip archive, with extra data prepended default
98% file data default
66% TrID Mozilla Firefox browser extension default (weak)
33% TrID ZIP compressed archive default
100% dexmagic PrintFox/Pagefox WEAK default
100% lsar Zip default
100% gt2 ZIP Archiv gefunden (Auflistung ist deaktiviert) default
100% detectItEasy Archive: Zip(1.0)[100.0%,2 files,2 dirs] default
100% binwalkID Zip archive data, at least v1.0 to extract, name: bin/ default
100% xdgMime application/zip default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 4b 03 04 0a 00 00 00 | 00 00 2c 3c 86 31 00 00 |PK......|..,<.1..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 04 00 15 00 62 69 |........|......bi|
|00000020| 6e 2f 55 54 09 00 03 c3 | 7b b4 41 d2 7b b4 41 55 |n/UT....|{.A.{.AU|
|00000030| 78 04 00 eb 03 01 02 50 | 4b 03 04 0a 00 00 00 00 |x......P|K.......|
|00000040| 00 2c 3c 86 31 00 00 00 | 00 00 00 00 00 00 00 00 |.,<.1...|........|
|00000050| 00 0b 00 15 00 62 69 6e | 2f 63 68 72 6f 6d 65 2f |.....bin|/chrome/|
|00000060| 55 54 09 00 03 c3 7b b4 | 41 d2 7b b4 41 55 78 04 |UT....{.|A.{.AUx.|
|00000070| 00 eb 03 01 02 50 4b 03 | 04 0a 00 00 00 00 00 2c |.....PK.|.......,|
|00000080| 3c 86 31 90 13 1c 26 19 | 45 00 00 19 45 00 00 16 |<.1...&.|E...E...|
|00000090| 00 15 00 62 69 6e 2f 63 | 68 72 6f 6d 65 2f 6f 66 |...bin/c|hrome/of|
|000000a0| 66 6c 69 6e 65 2e 6a 61 | 72 55 54 09 00 03 c3 7b |fline.ja|rUT....{|
|000000b0| b4 41 c3 7b b4 41 55 78 | 04 00 eb 03 01 02 50 4b |.A.{.AUx|......PK|
|000000c0| 03 04 0a 00 00 00 00 00 | 95 ac 16 31 d9 eb 51 0e |........|...1..Q.|
|000000d0| 64 0a 00 00 64 0a 00 00 | 2f 00 15 00 63 6f 6e 74 |d...d...|/...cont|
|000000e0| 65 6e 74 2f 6d 65 73 73 | 65 6e 67 65 72 2d 6f 66 |ent/mess|enger-of|
|000000f0| 66 6c 69 6e 65 2f 6d 73 | 67 4f 66 66 6c 69 6e 65 |fline/ms|gOffline|
|00000100| 4f 76 65 72 6c 61 79 2e | 78 75 6c 55 54 09 00 03 |Overlay.|xulUT...|
|00000110| 59 74 29 41 b5 78 b4 41 | 55 78 04 00 eb 03 01 02 |Yt)A.x.A|Ux......|
|00000120| 3c 3f 78 6d 6c 20 76 65 | 72 73 69 6f 6e 3d 22 31 |<?xml ve|rsion="1|
|00000130| 2e 30 22 3f 3e 20 0a 0a | 0a 3c 21 44 4f 43 54 59 |.0"?> ..|.<!DOCTY|
|00000140| 50 45 20 6f 76 65 72 6c | 61 79 20 53 59 53 54 45 |PE overl|ay SYSTE|
|00000150| 4d 20 22 63 68 72 6f 6d | 65 3a 2f 2f 6d 65 73 73 |M "chrom|e://mess|
|00000160| 65 6e 67 65 72 2d 6f 66 | 66 6c 69 6e 65 2f 6c 6f |enger-of|fline/lo|
|00000170| 63 61 6c 65 2f 6f 66 66 | 6c 69 6e 65 2e 64 74 64 |cale/off|line.dtd|
|00000180| 22 3e 0a 0a 3c 6f 76 65 | 72 6c 61 79 20 78 6d 6c |">..<ove|rlay xml|
|00000190| 6e 73 3d 22 68 74 74 70 | 3a 2f 2f 77 77 77 2e 6d |ns="http|://www.m|
|000001a0| 6f 7a 69 6c 6c 61 2e 6f | 72 67 2f 6b 65 79 6d 61 |ozilla.o|rg/keyma|
|000001b0| 73 74 65 72 2f 67 61 74 | 65 6b 65 65 70 65 72 2f |ster/gat|ekeeper/|
|000001c0| 74 68 65 72 65 2e 69 73 | 2e 6f 6e 6c 79 2e 78 75 |there.is|.only.xu|
|000001d0| 6c 22 3e 0a 0a 20 20 3c | 73 63 72 69 70 74 20 6c |l">.. <|script l|
|000001e0| 61 6e 67 75 61 67 65 3d | 22 4a 61 76 61 53 63 72 |anguage=|"JavaScr|
|000001f0| 69 70 74 22 20 73 72 63 | 3d 22 63 68 72 6f 6d 65 |ipt" src|="chrome|
|00000200| 3a 2f 2f 6d 65 73 73 65 | 6e 67 65 72 2d 6f 66 66 |://messe|nger-off|
|00000210| 6c 69 6e 65 2f 63 6f 6e | 74 65 6e 74 2f 6d 61 69 |line/con|tent/mai|
|00000220| 6c 2d 6f 66 66 6c 69 6e | 65 2e 6a 73 22 2f 3e 0a |l-offlin|e.js"/>.|
|00000230| 0a 20 20 3c 73 74 72 69 | 6e 67 62 75 6e 64 6c 65 |. <stri|ngbundle|
|00000240| 73 65 74 20 69 64 3d 22 | 73 74 72 69 6e 67 62 75 |set id="|stringbu|
|00000250| 6e 64 6c 65 73 65 74 22 | 3e 0a 20 20 20 20 3c 73 |ndleset"|>. <s|
|00000260| 74 72 69 6e 67 62 75 6e | 64 6c 65 20 69 64 3d 22 |tringbun|dle id="|
|00000270| 62 75 6e 64 6c 65 5f 6f | 66 66 6c 69 6e 65 50 72 |bundle_o|fflinePr|
|00000280| 6f 6d 70 74 73 22 20 73 | 72 63 3d 22 63 68 72 6f |ompts" s|rc="chro|
|00000290| 6d 65 3a 2f 2f 6d 65 73 | 73 65 6e 67 65 72 2d 6f |me://mes|senger-o|
|000002a0| 66 66 6c 69 6e 65 2f 6c | 6f 63 61 6c 65 2f 6f 66 |ffline/l|ocale/of|
|000002b0| 66 6c 69 6e 65 2e 70 72 | 6f 70 65 72 74 69 65 73 |fline.pr|operties|
|000002c0| 22 2f 3e 0a 20 20 3c 2f | 73 74 72 69 6e 67 62 75 |"/>. </|stringbu|
|000002d0| 6e 64 6c 65 73 65 74 3e | 0a 20 20 0a 20 20 3c 68 |ndleset>|. . <h|
|000002e0| 62 6f 78 20 69 64 3d 22 | 73 74 61 74 75 73 54 65 |box id="|statusTe|
|000002f0| 78 74 42 6f 78 22 3e 0a | 20 20 20 20 3c 73 74 61 |xtBox">.| <sta|
|00000300| 74 75 73 62 61 72 70 61 | 6e 65 6c 20 69 6e 73 65 |tusbarpa|nel inse|
|00000310| 72 74 62 65 66 6f 72 65 | 3d 22 73 74 61 74 75 73 |rtbefore|="status|
|00000320| 54 65 78 74 22 20 63 68 | 65 63 6b 66 75 6e 63 3d |Text" ch|eckfunc=|
|00000330| 22 4d 61 69 6c 43 68 65 | 63 6b 42 65 66 6f 72 65 |"MailChe|ckBefore|
|00000340| 4f 66 66 6c 69 6e 65 43 | 68 61 6e 67 65 28 29 22 |OfflineC|hange()"|
|00000350| 20 69 64 3d 22 6f 66 66 | 6c 69 6e 65 2d 73 74 61 | id="off|line-sta|
|00000360| 74 75 73 22 20 63 6c 61 | 73 73 3d 22 73 74 61 74 |tus" cla|ss="stat|
|00000370| 75 73 62 61 72 70 61 6e | 65 6c 2d 69 63 6f 6e 69 |usbarpan|el-iconi|
|00000380| 63 22 2f 3e 20 0a 20 20 | 20 20 3c 2f 68 62 6f 78 |c"/> . | </hbox|
|00000390| 3e 0a 0a 20 20 3c 63 6f | 6d 6d 61 6e 64 73 65 74 |>.. <co|mmandset|
|000003a0| 20 69 64 3d 22 6d 61 69 | 6c 46 69 6c 65 4d 65 6e | id="mai|lFileMen|
|000003b0| 75 49 74 65 6d 73 22 3e | 0a 20 20 20 20 3c 63 6f |uItems">|. <co|
|000003c0| 6d 6d 61 6e 64 20 69 64 | 3d 22 63 6d 64 5f 73 79 |mmand id|="cmd_sy|
|000003d0| 6e 63 68 72 6f 6e 69 7a | 65 4f 66 66 6c 69 6e 65 |nchroniz|eOffline|
|000003e0| 22 20 6f 6e 63 6f 6d 6d | 61 6e 64 3d 22 67 6f 44 |" oncomm|and="goD|
|000003f0| 6f 43 6f 6d 6d 61 6e 64 | 28 27 63 6d 64 5f 73 79 |oCommand|('cmd_sy|
|00000400| 6e 63 68 72 6f 6e 69 7a | 65 4f 66 66 6c 69 6e 65 |nchroniz|eOffline|
|00000410| 27 29 22 20 64 69 73 61 | 62 6c 65 64 3d 22 74 72 |')" disa|bled="tr|
|00000420| 75 65 22 2f 3e 0a 20 20 | 20 20 3c 63 6f 6d 6d 61 |ue"/>. | <comma|
|00000430| 6e 64 20 69 64 3d 22 63 | 6d 64 5f 64 6f 77 6e 6c |nd id="c|md_downl|
|00000440| 6f 61 64 46 6c 61 67 67 | 65 64 22 20 6f 6e 63 6f |oadFlagg|ed" onco|
|00000450| 6d 6d 61 6e 64 3d 22 67 | 6f 44 6f 43 6f 6d 6d 61 |mmand="g|oDoComma|
|00000460| 6e 64 28 27 63 6d 64 5f | 64 6f 77 6e 6c 6f 61 64 |nd('cmd_|download|
|00000470| 46 6c 61 67 67 65 64 27 | 29 22 20 64 69 73 61 62 |Flagged'|)" disab|
|00000480| 6c 65 64 3d 22 74 72 75 | 65 22 2f 3e 0a 20 20 20 |led="tru|e"/>. |
|00000490| 20 3c 63 6f 6d 6d 61 6e | 64 20 69 64 3d 22 63 6d | <comman|d id="cm|
|000004a0| 64 5f 64 6f 77 6e 6c 6f | 61 64 53 65 6c 65 63 74 |d_downlo|adSelect|
|000004b0| 65 64 22 20 6f 6e 63 6f | 6d 6d 61 6e 64 3d 22 67 |ed" onco|mmand="g|
|000004c0| 6f 44 6f 43 6f 6d 6d 61 | 6e 64 28 27 63 6d 64 5f |oDoComma|nd('cmd_|
|000004d0| 64 6f 77 6e 6c 6f 61 64 | 53 65 6c 65 63 74 65 64 |download|Selected|
|000004e0| 27 29 22 20 64 69 73 61 | 62 6c 65 64 3d 22 74 72 |')" disa|bled="tr|
|000004f0| 75 65 22 2f 3e 0a 20 20 | 20 20 3c 63 6f 6d 6d 61 |ue"/>. | <comma|
|00000500| 6e 64 20 69 64 3d 22 63 | 6d 64 5f 73 65 74 74 69 |nd id="c|md_setti|
|00000510| 6e 67 73 4f 66 66 6c 69 | 6e 65 22 20 6f 6e 63 6f |ngsOffli|ne" onco|
|00000520| 6d 6d 61 6e 64 3d 22 67 | 6f 44 6f 43 6f 6d 6d 61 |mmand="g|oDoComma|
|00000530| 6e 64 28 27 63 6d 64 5f | 73 65 74 74 69 6e 67 73 |nd('cmd_|settings|
|00000540| 4f 66 66 6c 69 6e 65 27 | 29 22 20 64 69 73 61 62 |Offline'|)" disab|
|00000550| 6c 65 64 3d 22 74 72 75 | 65 22 2f 3e 0a 20 20 3c |led="tru|e"/>. <|
|00000560| 2f 63 6f 6d 6d 61 6e 64 | 73 65 74 3e 0a 0a 20 20 |/command|set>.. |
|00000570| 3c 6d 65 6e 75 70 6f 70 | 75 70 20 69 64 3d 22 6d |<menupop|up id="m|
|00000580| 65 6e 75 5f 46 69 6c 65 | 50 6f 70 75 70 22 3e 0a |enu_File|Popup">.|
|00000590| 20 20 20 20 3c 6d 65 6e | 75 20 69 64 3d 22 6f 66 | <men|u id="of|
|000005a0| 66 6c 69 6e 65 4d 65 6e | 75 49 74 65 6d 22 20 69 |flineMen|uItem" i|
|000005b0| 6e 73 65 72 74 61 66 74 | 65 72 3d 22 74 72 61 73 |nsertaft|er="tras|
|000005c0| 68 4d 65 6e 75 53 65 70 | 61 72 61 74 6f 72 22 20 |hMenuSep|arator" |
|000005d0| 6c 61 62 65 6c 3d 22 26 | 6f 66 66 6c 69 6e 65 4d |label="&|offlineM|
|000005e0| 65 6e 75 2e 6c 61 62 65 | 6c 3b 22 20 61 63 63 65 |enu.labe|l;" acce|
|000005f0| 73 73 6b 65 79 3d 22 26 | 6f 66 66 6c 69 6e 65 4d |sskey="&|offlineM|
|00000600| 65 6e 75 2e 61 63 63 65 | 73 73 6b 65 79 3b 22 3e |enu.acce|sskey;">|
|00000610| 0a 20 20 20 20 20 20 3c | 6d 65 6e 75 70 6f 70 75 |. <|menupopu|
|00000620| 70 3e 0a 20 20 20 20 20 | 20 20 20 3c 6d 65 6e 75 |p>. | <menu|
|00000630| 69 74 65 6d 20 69 64 3d | 22 6f 66 66 6c 69 6e 65 |item id=|"offline|
|00000640| 47 6f 4f 66 66 6c 69 6e | 65 43 6d 64 22 2f 3e 0a |GoOfflin|eCmd"/>.|
|00000650| 20 20 20 20 20 20 20 20 | 3c 6d 65 6e 75 73 65 70 | |<menusep|
|00000660| 61 72 61 74 6f 72 2f 3e | 0a 20 20 20 20 20 20 20 |arator/>|. |
|00000670| 20 3c 6d 65 6e 75 69 74 | 65 6d 20 6c 61 62 65 6c | <menuit|em label|
|00000680| 3d 22 26 73 79 6e 63 68 | 72 6f 6e 69 7a 65 4f 66 |="&synch|ronizeOf|
|00000690| 66 6c 69 6e 65 43 6d 64 | 2e 6c 61 62 65 6c 3b 22 |flineCmd|.label;"|
|000006a0| 20 20 61 63 63 65 73 73 | 6b 65 79 3d 22 26 73 79 | access|key="&sy|
|000006b0| 6e 63 68 72 6f 6e 69 7a | 65 4f 66 66 6c 69 6e 65 |nchroniz|eOffline|
|000006c0| 43 6d 64 2e 61 63 63 65 | 73 73 6b 65 79 3b 22 20 |Cmd.acce|sskey;" |
|000006d0| 6f 62 73 65 72 76 65 73 | 3d 22 63 6d 64 5f 73 79 |observes|="cmd_sy|
|000006e0| 6e 63 68 72 6f 6e 69 7a | 65 4f 66 66 6c 69 6e 65 |nchroniz|eOffline|
|000006f0| 22 2f 3e 0a 20 20 20 20 | 20 20 20 20 3c 6d 65 6e |"/>. | <men|
|00000700| 75 69 74 65 6d 20 6c 61 | 62 65 6c 3d 22 26 73 65 |uitem la|bel="&se|
|00000710| 74 74 69 6e 67 73 4f 66 | 66 6c 69 6e 65 43 6d 64 |ttingsOf|flineCmd|
|00000720| 2e 6c 61 62 65 6c 3b 22 | 20 20 20 20 20 61 63 63 |.label;"| acc|
|00000730| 65 73 73 6b 65 79 3d 22 | 26 73 65 74 74 69 6e 67 |esskey="|&setting|
|00000740| 73 4f 66 66 6c 69 6e 65 | 43 6d 64 2e 61 63 63 65 |sOffline|Cmd.acce|
|00000750| 73 73 6b 65 79 3b 22 20 | 6f 6e 63 6f 6d 6d 61 6e |sskey;" |oncomman|
|00000760| 64 3d 22 77 69 6e 64 6f | 77 2e 6f 70 65 6e 44 69 |d="windo|w.openDi|
|00000770| 61 6c 6f 67 28 27 63 68 | 72 6f 6d 65 3a 2f 2f 6d |alog('ch|rome://m|
|00000780| 65 73 73 65 6e 67 65 72 | 2d 6f 66 66 6c 69 6e 65 |essenger|-offline|
|00000790| 2f 63 6f 6e 74 65 6e 74 | 2f 70 72 65 66 2d 6f 66 |/content|/pref-of|
|000007a0| 66 6c 69 6e 65 2e 78 75 | 6c 27 2c 20 27 27 2c 20 |fline.xu|l', '', |
|000007b0| 27 63 68 72 6f 6d 65 2c | 64 69 61 6c 6f 67 2c 6d |'chrome,|dialog,m|
|000007c0| 6f 64 61 6c 2c 72 65 73 | 69 7a 61 62 6c 65 27 29 |odal,res|izable')|
|000007d0| 3b 22 2f 3e 0a 20 20 20 | 20 20 20 20 20 3c 6d 65 |;"/>. | <me|
|000007e0| 6e 75 73 65 70 61 72 61 | 74 6f 72 2f 3e 0a 20 20 |nusepara|tor/>. |
|000007f0| 20 20 20 20 20 20 3c 6d | 65 6e 75 69 74 65 6d 20 | <m|enuitem |
|00000800| 6c 61 62 65 6c 3d 22 26 | 64 6f 77 6e 6c 6f 61 64 |label="&|download|
|00000810| 46 6c 61 67 67 65 64 43 | 6d 64 2e 6c 61 62 65 6c |FlaggedC|md.label|
|00000820| 3b 22 20 20 20 20 20 61 | 63 63 65 73 73 6b 65 79 |;" a|ccesskey|
|00000830| 3d 22 26 64 6f 77 6e 6c | 6f 61 64 46 6c 61 67 67 |="&downl|oadFlagg|
|00000840| 65 64 43 6d 64 2e 61 63 | 63 65 73 73 6b 65 79 3b |edCmd.ac|cesskey;|
|00000850| 22 20 20 20 20 6f 62 73 | 65 72 76 65 73 3d 22 63 |" obs|erves="c|
|00000860| 6d 64 5f 64 6f 77 6e 6c | 6f 61 64 46 6c 61 67 67 |md_downl|oadFlagg|
|00000870| 65 64 22 2f 3e 0a 20 20 | 20 20 20 20 20 20 3c 6d |ed"/>. | <m|
|00000880| 65 6e 75 69 74 65 6d 20 | 6c 61 62 65 6c 3d 22 26 |enuitem |label="&|
|00000890| 64 6f 77 6e 6c 6f 61 64 | 53 65 6c 65 63 74 65 64 |download|Selected|
|000008a0| 43 6d 64 2e 6c 61 62 65 | 6c 3b 22 20 20 20 20 61 |Cmd.labe|l;" a|
|000008b0| 63 63 65 73 73 6b 65 79 | 3d 22 26 64 6f 77 6e 6c |ccesskey|="&downl|
|000008c0| 6f 61 64 53 65 6c 65 63 | 74 65 64 43 6d 64 2e 61 |oadSelec|tedCmd.a|
|000008d0| 63 63 65 73 73 6b 65 79 | 3b 22 20 20 20 6f 62 73 |ccesskey|;" obs|
|000008e0| 65 72 76 65 73 3d 22 63 | 6d 64 5f 64 6f 77 6e 6c |erves="c|md_downl|
|000008f0| 6f 61 64 53 65 6c 65 63 | 74 65 64 22 2f 3e 0a 20 |oadSelec|ted"/>. |
|00000900| 20 20 20 20 20 3c 2f 6d | 65 6e 75 70 6f 70 75 70 | </m|enupopup|
|00000910| 3e 0a 20 20 20 20 3c 2f | 6d 65 6e 75 3e 20 20 0a |>. </|menu> .|
|00000920| 20 20 3c 2f 6d 65 6e 75 | 70 6f 70 75 70 3e 0a 0a | </menu|popup>..|
|00000930| 20 20 3c 6d 65 6e 75 70 | 6f 70 75 70 20 69 64 3d | <menup|opup id=|
|00000940| 22 6d 65 6e 75 5f 46 69 | 6c 65 50 6f 70 75 70 22 |"menu_Fi|lePopup"|
|00000950| 3e 0a 20 20 20 20 3c 6d | 65 6e 75 73 65 70 61 72 |>. <m|enusepar|
|00000960| 61 74 6f 72 20 69 6e 73 | 65 72 74 61 66 74 65 72 |ator ins|ertafter|
|00000970| 3d 22 6f 66 66 6c 69 6e | 65 4d 65 6e 75 49 74 65 |="offlin|eMenuIte|
|00000980| 6d 22 2f 3e 0a 20 20 3c | 2f 6d 65 6e 75 70 6f 70 |m"/>. <|/menupop|
|00000990| 75 70 3e 0a 0a 20 20 3c | 65 78 70 61 6e 64 65 72 |up>.. <|expander|
|000009a0| 20 69 64 3d 22 63 6f 6e | 6e 65 63 74 69 6f 6e 73 | id="con|nections|
|000009b0| 22 20 6c 61 62 65 6c 3d | 22 26 70 72 65 66 4f 66 |" label=|"&prefOf|
|000009c0| 66 6c 69 6e 65 43 6f 6e | 6e 65 63 74 69 6f 6e 2e |flineCon|nection.|
|000009d0| 6c 61 62 65 6c 3b 22 3e | 0a 20 20 20 20 3c 68 62 |label;">|. <hb|
|000009e0| 6f 78 20 69 6e 73 65 72 | 74 62 65 66 6f 72 65 3d |ox inser|tbefore=|
|000009f0| 22 70 72 6f 78 79 43 6f | 6e 6e 65 63 74 69 6f 6e |"proxyCo|nnection|
|00000a00| 53 65 74 74 69 6e 67 73 | 22 20 61 6c 69 67 6e 3d |Settings|" align=|
|00000a10| 22 63 65 6e 74 65 72 22 | 20 70 61 63 6b 3d 22 65 |"center"| pack="e|
|00000a20| 6e 64 22 3e 0a 20 20 20 | 20 20 20 20 20 3c 6c 61 |nd">. | <la|
|00000a30| 62 65 6c 20 63 6c 61 73 | 73 3d 22 65 78 70 61 6e |bel clas|s="expan|
|00000a40| 64 65 72 44 65 73 63 72 | 69 70 74 69 6f 6e 22 20 |derDescr|iption" |
|00000a50| 76 61 6c 75 65 3d 22 26 | 70 72 65 66 4f 66 66 6c |value="&|prefOffl|
|00000a60| 69 6e 65 44 65 73 63 2e | 6c 61 62 65 6c 3b 22 20 |ineDesc.|label;" |
|00000a70| 66 6c 65 78 3d 22 31 22 | 2f 3e 0a 20 20 20 20 20 |flex="1"|/>. |
|00000a80| 20 20 20 3c 62 75 74 74 | 6f 6e 20 6c 61 62 65 6c | <butt|on label|
|00000a90| 3d 22 26 70 72 65 66 4f | 66 66 6c 69 6e 65 42 75 |="&prefO|fflineBu|
|00000aa0| 74 74 6f 6e 2e 6c 61 62 | 65 6c 3b 22 20 61 63 63 |tton.lab|el;" acc|
|00000ab0| 65 73 73 6b 65 79 3d 22 | 26 70 72 65 66 4f 66 66 |esskey="|&prefOff|
|00000ac0| 6c 69 6e 65 42 75 74 74 | 6f 6e 2e 61 63 63 65 73 |lineButt|on.acces|
|00000ad0| 73 6b 65 79 3b 22 20 0a | 20 20 20 20 20 20 20 20 |skey;" .| |
|00000ae0| 20 6f 6e 63 6f 6d 6d 61 | 6e 64 3d 22 77 69 6e 64 | oncomma|nd="wind|
|00000af0| 6f 77 2e 6f 70 65 6e 44 | 69 61 6c 6f 67 28 27 63 |ow.openD|ialog('c|
|00000b00| 68 72 6f 6d 65 3a 2f 2f | 6d 65 73 73 65 6e 67 65 |hrome://|messenge|
|00000b10| 72 2d 6f 66 66 6c 69 6e | 65 2f 63 6f 6e 74 65 6e |r-offlin|e/conten|
|00000b20| 74 2f 70 72 65 66 2d 6f | 66 66 6c 69 6e 65 2e 78 |t/pref-o|ffline.x|
|00000b30| 75 6c 27 2c 20 27 27 2c | 20 27 63 68 72 6f 6d 65 |ul', '',| 'chrome|
|00000b40| 2c 64 69 61 6c 6f 67 2c | 6d 6f 64 61 6c 2c 72 65 |,dialog,|modal,re|
|00000b50| 73 69 7a 61 62 6c 65 27 | 29 3b 22 2f 3e 0a 20 20 |sizable'|);"/>. |
|00000b60| 20 20 3c 2f 68 62 6f 78 | 3e 0a 20 20 3c 2f 65 78 | </hbox|>. </ex|
|00000b70| 70 61 6e 64 65 72 3e 0a | 0a 3c 2f 6f 76 65 72 6c |pander>.|.</overl|
|00000b80| 61 79 3e 0a 50 4b 03 04 | 0a 00 00 00 00 00 d6 a5 |ay>.PK..|........|
|00000b90| c4 2e 54 01 04 dc b9 1f | 00 00 b9 1f 00 00 29 00 |..T.....|......).|
|00000ba0| 15 00 63 6f 6e 74 65 6e | 74 2f 6d 65 73 73 65 6e |..conten|t/messen|
|00000bb0| 67 65 72 2d 6f 66 66 6c | 69 6e 65 2f 6d 61 69 6c |ger-offl|ine/mail|
|00000bc0| 2d 6f 66 66 6c 69 6e 65 | 2e 6a 73 55 54 09 00 03 |-offline|.jsUT...|
|00000bd0| 23 bd de 3e b6 78 b4 41 | 55 78 04 00 eb 03 01 02 |#..>.x.A|Ux......|
|00000be0| 0a 76 61 72 20 67 4d 61 | 69 6c 4f 66 66 6c 69 6e |.var gMa|ilOfflin|
|00000bf0| 65 50 72 65 66 73 20 3d | 20 6e 75 6c 6c 3b 0a 76 |ePrefs =| null;.v|
|00000c00| 61 72 20 67 4f 66 66 6c | 69 6e 65 50 72 6f 6d 70 |ar gOffl|inePromp|
|00000c10| 74 73 42 75 6e 64 6c 65 | 3b 0a 76 61 72 20 67 50 |tsBundle|;.var gP|
|00000c20| 72 6f 6d 70 74 53 65 72 | 76 69 63 65 3b 0a 76 61 |romptSer|vice;.va|
|00000c30| 72 20 67 4f 66 66 6c 69 | 6e 65 4d 61 6e 61 67 65 |r gOffli|neManage|
|00000c40| 72 3b 0a 0a 0a 66 75 6e | 63 74 69 6f 6e 20 4d 61 |r;...fun|ction Ma|
|00000c50| 69 6c 4f 66 66 6c 69 6e | 65 53 74 61 74 65 43 68 |ilOfflin|eStateCh|
|00000c60| 61 6e 67 65 64 28 67 6f | 69 6e 67 4f 66 66 6c 69 |anged(go|ingOffli|
|00000c70| 6e 65 29 0a 7b 0a 20 20 | 2f 2f 20 74 77 65 61 6b |ne).{. |// tweak|
|00000c80| 20 61 6e 79 20 6d 61 69 | 6c 20 55 49 20 68 65 72 | any mai|l UI her|
|00000c90| 65 20 74 68 61 74 20 6e | 65 65 64 73 20 74 6f 20 |e that n|eeds to |
|00000ca0| 63 68 61 6e 67 65 20 77 | 68 65 6e 20 77 65 20 67 |change w|hen we g|
|00000cb0| 6f 20 6f 66 66 6c 69 6e | 65 20 6f 72 20 63 6f 6d |o offlin|e or com|
|00000cc0| 65 20 62 61 63 6b 20 6f | 6e 6c 69 6e 65 0a 20 20 |e back o|nline. |
|00000cd0| 67 46 6f 6c 64 65 72 4a | 75 73 74 53 77 69 74 63 |gFolderJ|ustSwitc|
|00000ce0| 68 65 64 20 3d 20 74 72 | 75 65 3b 0a 7d 0a 0a 66 |hed = tr|ue;.}..f|
|00000cf0| 75 6e 63 74 69 6f 6e 20 | 4d 73 67 53 65 74 74 69 |unction |MsgSetti|
|00000d00| 6e 67 73 4f 66 66 6c 69 | 6e 65 28 29 0a 7b 0a 20 |ngsOffli|ne().{. |
|00000d10| 20 20 20 77 69 6e 64 6f | 77 2e 70 61 72 65 6e 74 | windo|w.parent|
|00000d20| 2e 4d 73 67 41 63 63 6f | 75 6e 74 4d 61 6e 61 67 |.MsgAcco|untManag|
|00000d30| 65 72 28 27 61 6d 2d 6f | 66 66 6c 69 6e 65 2e 78 |er('am-o|ffline.x|
|00000d40| 75 6c 27 29 3b 0a 7d 0a | 0a 2f 2f 20 49 6e 69 74 |ul');.}.|.// Init|
|00000d50| 20 50 72 65 66 73 53 65 | 72 76 69 63 65 0a 66 75 | PrefsSe|rvice.fu|
|00000d60| 6e 63 74 69 6f 6e 20 47 | 65 74 4d 61 69 6c 4f 66 |nction G|etMailOf|
|00000d70| 66 6c 69 6e 65 50 72 65 | 66 73 28 29 0a 7b 0a 20 |flinePre|fs().{. |
|00000d80| 20 2f 2f 20 53 74 6f 72 | 65 20 74 68 65 20 70 72 | // Stor|e the pr|
|00000d90| 65 66 73 20 6f 62 6a 65 | 63 74 0a 20 20 74 72 79 |efs obje|ct. try|
|00000da0| 20 7b 0a 20 20 20 20 76 | 61 72 20 70 72 65 66 73 | {. v|ar prefs|
|00000db0| 53 65 72 76 69 63 65 20 | 3d 20 43 6f 6d 70 6f 6e |Service |= Compon|
|00000dc0| 65 6e 74 73 2e 63 6c 61 | 73 73 65 73 5b 22 40 6d |ents.cla|sses["@m|
|00000dd0| 6f 7a 69 6c 6c 61 2e 6f | 72 67 2f 70 72 65 66 65 |ozilla.o|rg/prefe|
|00000de0| 72 65 6e 63 65 73 2d 73 | 65 72 76 69 63 65 3b 31 |rences-s|ervice;1|
|00000df0| 22 5d 3b 0a 20 20 20 20 | 69 66 20 28 70 72 65 66 |"];. |if (pref|
|00000e00| 73 53 65 72 76 69 63 65 | 29 0a 20 20 20 20 70 72 |sService|). pr|
|00000e10| 65 66 73 53 65 72 76 69 | 63 65 20 3d 20 70 72 65 |efsServi|ce = pre|
|00000e20| 66 73 53 65 72 76 69 63 | 65 2e 67 65 74 53 65 72 |fsServic|e.getSer|
|00000e30| 76 69 63 65 28 29 3b 0a | 20 20 20 20 69 66 20 28 |vice();.| if (|
|00000e40| 70 72 65 66 73 53 65 72 | 76 69 63 65 29 0a 20 20 |prefsSer|vice). |
|00000e50| 20 20 67 4d 61 69 6c 4f | 66 66 6c 69 6e 65 50 72 | gMailO|fflinePr|
|00000e60| 65 66 73 20 3d 20 70 72 | 65 66 73 53 65 72 76 69 |efs = pr|efsServi|
|00000e70| 63 65 2e 51 75 65 72 79 | 49 6e 74 65 72 66 61 63 |ce.Query|Interfac|
|00000e80| 65 28 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |e(Compon|ents.int|
|00000e90| 65 72 66 61 63 65 73 2e | 6e 73 49 50 72 65 66 42 |erfaces.|nsIPrefB|
|00000ea0| 72 61 6e 63 68 29 3b 0a | 0a 20 20 20 20 69 66 20 |ranch);.|. if |
|00000eb0| 28 21 67 4d 61 69 6c 4f | 66 66 6c 69 6e 65 50 72 |(!gMailO|fflinePr|
|00000ec0| 65 66 73 29 0a 20 20 20 | 20 64 75 6d 70 28 22 66 |efs). | dump("f|
|00000ed0| 61 69 6c 65 64 20 74 6f | 20 67 65 74 20 70 72 65 |ailed to| get pre|
|00000ee0| 66 73 20 73 65 72 76 69 | 63 65 21 5c 6e 22 29 3b |fs servi|ce!\n");|
|00000ef0| 0a 20 20 7d 0a 20 20 63 | 61 74 63 68 28 65 78 29 |. }. c|atch(ex)|
|00000f00| 20 7b 0a 20 20 20 20 64 | 75 6d 70 28 22 66 61 69 | {. d|ump("fai|
|00000f10| 6c 65 64 20 74 6f 20 67 | 65 74 20 70 72 65 66 73 |led to g|et prefs|
|00000f20| 20 73 65 72 76 69 63 65 | 21 5c 6e 22 29 3b 0a 20 | service|!\n");. |
|00000f30| 20 7d 0a 7d 0a 0a 2f 2f | 20 43 68 65 63 6b 20 66 | }.}..//| Check f|
|00000f40| 6f 72 20 75 6e 73 65 6e | 74 20 6d 65 73 73 61 67 |or unsen|t messag|
|00000f50| 65 73 0a 66 75 6e 63 74 | 69 6f 6e 20 43 68 65 63 |es.funct|ion Chec|
|00000f60| 6b 46 6f 72 55 6e 73 65 | 6e 74 4d 65 73 73 61 67 |kForUnse|ntMessag|
|00000f70| 65 73 28 29 0a 7b 0a 20 | 20 74 72 79 0a 20 20 7b |es().{. | try. {|
|00000f80| 0a 20 20 20 20 76 61 72 | 20 61 6d 20 3d 20 43 6f |. var| am = Co|
|00000f90| 6d 70 6f 6e 65 6e 74 73 | 2e 63 6c 61 73 73 65 73 |mponents|.classes|
|00000fa0| 5b 22 40 6d 6f 7a 69 6c | 6c 61 2e 6f 72 67 2f 6d |["@mozil|la.org/m|
|00000fb0| 65 73 73 65 6e 67 65 72 | 2f 61 63 63 6f 75 6e 74 |essenger|/account|
|00000fc0| 2d 6d 61 6e 61 67 65 72 | 3b 31 22 5d 0a 20 20 20 |-manager|;1"]. |
|00000fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2e 67 | | .g|
|00000fe0| 65 74 53 65 72 76 69 63 | 65 28 43 6f 6d 70 6f 6e |etServic|e(Compon|
|00000ff0| 65 6e 74 73 2e 69 6e 74 | 65 72 66 61 63 65 73 2e |ents.int|erfaces.|
|00001000| 6e 73 49 4d 73 67 41 63 | 63 6f 75 6e 74 4d 61 6e |nsIMsgAc|countMan|
|00001010| 61 67 65 72 29 3b 0a 20 | 20 20 20 76 61 72 20 6d |ager);. | var m|
|00001020| 73 67 53 65 6e 64 6c 61 | 74 65 72 20 3d 20 43 6f |sgSendla|ter = Co|
|00001030| 6d 70 6f 6e 65 6e 74 73 | 2e 63 6c 61 73 73 65 73 |mponents|.classes|
|00001040| 5b 22 40 6d 6f 7a 69 6c | 6c 61 2e 6f 72 67 2f 6d |["@mozil|la.org/m|
|00001050| 65 73 73 65 6e 67 65 72 | 63 6f 6d 70 6f 73 65 2f |essenger|compose/|
|00001060| 73 65 6e 64 6c 61 74 65 | 72 3b 31 22 5d 0a 20 20 |sendlate|r;1"]. |
|00001070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2e | | .|
|00001080| 67 65 74 53 65 72 76 69 | 63 65 28 43 6f 6d 70 6f |getServi|ce(Compo|
|00001090| 6e 65 6e 74 73 2e 69 6e | 74 65 72 66 61 63 65 73 |nents.in|terfaces|
|000010a0| 2e 6e 73 49 4d 73 67 53 | 65 6e 64 4c 61 74 65 72 |.nsIMsgS|endLater|
|000010b0| 29 3b 0a 20 20 20 20 76 | 61 72 20 69 64 65 6e 74 |);. v|ar ident|
|000010c0| 69 74 69 65 73 43 6f 75 | 6e 74 2c 20 61 6c 6c 49 |itiesCou|nt, allI|
|000010d0| 64 65 6e 74 69 74 69 65 | 73 2c 20 63 75 72 72 65 |dentitie|s, curre|
|000010e0| 6e 74 49 64 65 6e 74 69 | 74 79 2c 20 6e 75 6d 4d |ntIdenti|ty, numM|
|000010f0| 65 73 73 61 67 65 73 2c | 20 6d 73 67 46 6f 6c 64 |essages,| msgFold|
|00001100| 65 72 3b 0a 0a 20 20 20 | 20 69 66 28 61 6d 29 20 |er;.. | if(am) |
|00001110| 7b 20 0a 20 20 20 20 20 | 20 61 6c 6c 49 64 65 6e |{ . | allIden|
|00001120| 74 69 74 69 65 73 20 3d | 20 61 6d 2e 61 6c 6c 49 |tities =| am.allI|
|00001130| 64 65 6e 74 69 74 69 65 | 73 3b 0a 20 20 20 20 20 |dentitie|s;. |
|00001140| 20 69 64 65 6e 74 69 74 | 69 65 73 43 6f 75 6e 74 | identit|iesCount|
|00001150| 20 3d 20 61 6c 6c 49 64 | 65 6e 74 69 74 69 65 73 | = allId|entities|
|00001160| 2e 43 6f 75 6e 74 28 29 | 3b 0a 20 20 20 20 20 20 |.Count()|;. |
|00001170| 66 6f 72 20 28 76 61 72 | 20 69 20 3d 20 30 3b 20 |for (var| i = 0; |
|00001180| 69 20 3c 20 69 64 65 6e | 74 69 74 69 65 73 43 6f |i < iden|titiesCo|
|00001190| 75 6e 74 3b 20 69 2b 2b | 29 20 7b 0a 20 20 20 20 |unt; i++|) {. |
|000011a0| 20 20 20 20 63 75 72 72 | 65 6e 74 49 64 65 6e 74 | curr|entIdent|
|000011b0| 69 74 79 20 3d 20 61 6c | 6c 49 64 65 6e 74 69 74 |ity = al|lIdentit|
|000011c0| 69 65 73 2e 51 75 65 72 | 79 45 6c 65 6d 65 6e 74 |ies.Quer|yElement|
|000011d0| 41 74 28 69 2c 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |At(i, Co|mponents|
|000011e0| 2e 69 6e 74 65 72 66 61 | 63 65 73 2e 6e 73 49 4d |.interfa|ces.nsIM|
|000011f0| 73 67 49 64 65 6e 74 69 | 74 79 29 3b 0a 20 20 20 |sgIdenti|ty);. |
|00001200| 20 20 20 20 20 6d 73 67 | 46 6f 6c 64 65 72 20 3d | msg|Folder =|
|00001210| 20 6d 73 67 53 65 6e 64 | 6c 61 74 65 72 2e 67 65 | msgSend|later.ge|
|00001220| 74 55 6e 73 65 6e 74 4d | 65 73 73 61 67 65 73 46 |tUnsentM|essagesF|
|00001230| 6f 6c 64 65 72 28 63 75 | 72 72 65 6e 74 49 64 65 |older(cu|rrentIde|
|00001240| 6e 74 69 74 79 29 3b 0a | 20 20 20 20 20 20 20 20 |ntity);.| |
|00001250| 69 66 28 6d 73 67 46 6f | 6c 64 65 72 29 20 7b 0a |if(msgFo|lder) {.|
|00001260| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 20 69 66 20 | | // if |
|00001270| 74 72 75 65 2c 20 64 65 | 73 63 65 6e 64 73 20 69 |true, de|scends i|
|00001280| 6e 74 6f 20 61 6c 6c 20 | 73 75 62 66 6f 6c 64 65 |nto all |subfolde|
|00001290| 72 73 20 0a 20 20 20 20 | 20 20 20 20 20 20 6e 75 |rs . | nu|
|000012a0| 6d 4d 65 73 73 61 67 65 | 73 20 3d 20 6d 73 67 46 |mMessage|s = msgF|
|000012b0| 6f 6c 64 65 72 2e 67 65 | 74 54 6f 74 61 6c 4d 65 |older.ge|tTotalMe|
|000012c0| 73 73 61 67 65 73 28 66 | 61 6c 73 65 29 3b 0a 20 |ssages(f|alse);. |
|000012d0| 20 20 20 20 20 20 20 20 | 20 69 66 28 6e 75 6d 4d | | if(numM|
|000012e0| 65 73 73 61 67 65 73 20 | 3e 20 30 29 20 72 65 74 |essages |> 0) ret|
|000012f0| 75 72 6e 20 74 72 75 65 | 3b 0a 20 20 20 20 20 20 |urn true|;. |
|00001300| 20 20 7d 0a 20 20 20 20 | 20 20 7d 20 0a 20 20 20 | }. | } . |
|00001310| 20 7d 0a 20 20 7d 0a 20 | 20 63 61 74 63 68 28 65 | }. }. | catch(e|
|00001320| 78 29 20 7b 0a 20 20 7d | 0a 20 20 72 65 74 75 72 |x) {. }|. retur|
|00001330| 6e 20 66 61 6c 73 65 3b | 0a 7d 0a 0a 2f 2f 20 49 |n false;|.}..// I|
|00001340| 6e 69 74 20 6e 73 49 50 | 72 6f 6d 70 74 53 65 72 |nit nsIP|romptSer|
|00001350| 76 69 63 65 20 26 20 73 | 74 72 69 6e 67 73 2e 0a |vice & s|trings..|
|00001360| 66 75 6e 63 74 69 6f 6e | 20 49 6e 69 74 50 72 6f |function| InitPro|
|00001370| 6d 70 74 73 28 29 0a 7b | 0a 20 20 69 66 28 21 67 |mpts().{|. if(!g|
|00001380| 50 72 6f 6d 70 74 53 65 | 72 76 69 63 65 29 20 7b |PromptSe|rvice) {|
|00001390| 0a 20 20 20 20 67 50 72 | 6f 6d 70 74 53 65 72 76 |. gPr|omptServ|
|000013a0| 69 63 65 20 3d 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |ice = Co|mponents|
|000013b0| 2e 63 6c 61 73 73 65 73 | 5b 22 40 6d 6f 7a 69 6c |.classes|["@mozil|
|000013c0| 6c 61 2e 6f 72 67 2f 65 | 6d 62 65 64 63 6f 6d 70 |la.org/e|mbedcomp|
|000013d0| 2f 70 72 6f 6d 70 74 2d | 73 65 72 76 69 63 65 3b |/prompt-|service;|
|000013e0| 31 22 5d 2e 67 65 74 53 | 65 72 76 69 63 65 28 29 |1"].getS|ervice()|
|000013f0| 3b 0a 20 20 20 20 67 50 | 72 6f 6d 70 74 53 65 72 |;. gP|romptSer|
|00001400| 76 69 63 65 20 3d 20 67 | 50 72 6f 6d 70 74 53 65 |vice = g|PromptSe|
|00001410| 72 76 69 63 65 2e 51 75 | 65 72 79 49 6e 74 65 72 |rvice.Qu|eryInter|
|00001420| 66 61 63 65 28 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |face(Com|ponents.|
|00001430| 69 6e 74 65 72 66 61 63 | 65 73 2e 6e 73 49 50 72 |interfac|es.nsIPr|
|00001440| 6f 6d 70 74 53 65 72 76 | 69 63 65 29 3b 0a 20 20 |omptServ|ice);. |
|00001450| 7d 0a 20 20 69 66 20 28 | 21 67 4f 66 66 6c 69 6e |}. if (|!gOfflin|
|00001460| 65 50 72 6f 6d 70 74 73 | 42 75 6e 64 6c 65 29 20 |ePrompts|Bundle) |
|00001470| 0a 20 20 20 20 67 4f 66 | 66 6c 69 6e 65 50 72 6f |. gOf|flinePro|
|00001480| 6d 70 74 73 42 75 6e 64 | 6c 65 20 3d 20 64 6f 63 |mptsBund|le = doc|
|00001490| 75 6d 65 6e 74 2e 67 65 | 74 45 6c 65 6d 65 6e 74 |ument.ge|tElement|
|000014a0| 42 79 49 64 28 22 62 75 | 6e 64 6c 65 5f 6f 66 66 |ById("bu|ndle_off|
|000014b0| 6c 69 6e 65 50 72 6f 6d | 70 74 73 22 29 3b 0a 7d |lineProm|pts");.}|
|000014c0| 0a 0a 2f 2f 20 70 72 6f | 6d 70 74 20 66 6f 72 20 |..// pro|mpt for |
|000014d0| 73 65 6e 64 69 6e 67 20 | 6d 65 73 73 61 67 65 73 |sending |messages|
|000014e0| 20 77 68 69 6c 65 20 67 | 6f 69 6e 67 20 6f 6e 6c | while g|oing onl|
|000014f0| 69 6e 65 2c 20 61 6e 64 | 20 67 6f 20 6f 6e 6c 69 |ine, and| go onli|
|00001500| 6e 65 2e 0a 66 75 6e 63 | 74 69 6f 6e 20 50 72 6f |ne..func|tion Pro|
|00001510| 6d 70 74 53 65 6e 64 4d | 65 73 73 61 67 65 73 28 |mptSendM|essages(|
|00001520| 29 0a 7b 0a 20 20 49 6e | 69 74 50 72 6f 6d 70 74 |).{. In|itPrompt|
|00001530| 73 28 29 3b 0a 20 20 49 | 6e 69 74 53 65 72 76 69 |s();. I|nitServi|
|00001540| 63 65 73 28 29 3b 0a 0a | 20 20 69 66 20 28 67 50 |ces();..| if (gP|
|00001550| 72 6f 6d 70 74 53 65 72 | 76 69 63 65 29 20 7b 0a |romptSer|vice) {.|
|00001560| 20 20 20 20 76 61 72 20 | 63 68 65 63 6b 56 61 6c | var |checkVal|
|00001570| 75 65 20 3d 20 7b 76 61 | 6c 75 65 3a 74 72 75 65 |ue = {va|lue:true|
|00001580| 7d 3b 0a 20 20 20 20 76 | 61 72 20 62 75 74 74 6f |};. v|ar butto|
|00001590| 6e 50 72 65 73 73 65 64 | 20 3d 20 67 50 72 6f 6d |nPressed| = gProm|
|000015a0| 70 74 53 65 72 76 69 63 | 65 2e 63 6f 6e 66 69 72 |ptServic|e.confir|
|000015b0| 6d 45 78 28 77 69 6e 64 | 6f 77 2c 20 0a 20 20 20 |mEx(wind|ow, . |
|000015c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015d0| 20 20 20 20 20 20 20 67 | 4f 66 66 6c 69 6e 65 50 | g|OfflineP|
|000015e0| 72 6f 6d 70 74 73 42 75 | 6e 64 6c 65 2e 67 65 74 |romptsBu|ndle.get|
|000015f0| 53 74 72 69 6e 67 28 27 | 73 65 6e 64 4d 65 73 73 |String('|sendMess|
|00001600| 61 67 65 73 57 69 6e 64 | 6f 77 54 69 74 6c 65 27 |agesWind|owTitle'|
|00001610| 29 2c 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |), . | |
|00001620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 67 4f | | gO|
|00001630| 66 66 6c 69 6e 65 50 72 | 6f 6d 70 74 73 42 75 6e |fflinePr|omptsBun|
|00001640| 64 6c 65 2e 67 65 74 53 | 74 72 69 6e 67 28 27 73 |dle.getS|tring('s|
|00001650| 65 6e 64 4d 65 73 73 61 | 67 65 73 4c 61 62 65 6c |endMessa|gesLabel|
|00001660| 27 29 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |'),. | |
|00001670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 67 50 | | gP|
|00001680| 72 6f 6d 70 74 53 65 72 | 76 69 63 65 2e 42 55 54 |romptSer|vice.BUT|
|00001690| 54 4f 4e 5f 54 49 54 4c | 45 5f 49 53 5f 53 54 52 |TON_TITL|E_IS_STR|
|000016a0| 49 4e 47 20 2a 20 28 67 | 50 72 6f 6d 70 74 53 65 |ING * (g|PromptSe|
|000016b0| 72 76 69 63 65 2e 42 55 | 54 54 4f 4e 5f 50 4f 53 |rvice.BU|TTON_POS|
|000016c0| 5f 30 20 2b 20 0a 20 20 | 20 20 20 20 20 20 20 20 |_0 + . | |
|000016d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016e0| 20 20 67 50 72 6f 6d 70 | 74 53 65 72 76 69 63 65 | gPromp|tService|
|000016f0| 2e 42 55 54 54 4f 4e 5f | 50 4f 53 5f 31 20 2b 20 |.BUTTON_|POS_1 + |
|00001700| 67 50 72 6f 6d 70 74 53 | 65 72 76 69 63 65 2e 42 |gPromptS|ervice.B|
|00001710| 55 54 54 4f 4e 5f 50 4f | 53 5f 32 29 2c 0a 20 20 |UTTON_PO|S_2),. |
|00001720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001730| 20 20 20 20 20 20 20 20 | 67 4f 66 66 6c 69 6e 65 | |gOffline|
|00001740| 50 72 6f 6d 70 74 73 42 | 75 6e 64 6c 65 2e 67 65 |PromptsB|undle.ge|
|00001750| 74 53 74 72 69 6e 67 28 | 27 73 65 6e 64 4d 65 73 |tString(|'sendMes|
|00001760| 73 61 67 65 73 53 65 6e | 64 42 75 74 74 6f 6e 4c |sagesSen|dButtonL|
|00001770| 61 62 65 6c 27 29 2c 0a | 20 20 20 20 20 20 20 20 |abel'),.| |
|00001780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001790| 20 20 67 4f 66 66 6c 69 | 6e 65 50 72 6f 6d 70 74 | gOffli|nePrompt|
|000017a0| 73 42 75 6e 64 6c 65 2e | 67 65 74 53 74 72 69 6e |sBundle.|getStrin|
|000017b0| 67 28 27 73 65 6e 64 4d | 65 73 73 61 67 65 73 43 |g('sendM|essagesC|
|000017c0| 61 6e 63 65 6c 42 75 74 | 74 6f 6e 4c 61 62 65 6c |ancelBut|tonLabel|
|000017d0| 27 29 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |'),. | |
|000017e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 67 4f | | gO|
|000017f0| 66 66 6c 69 6e 65 50 72 | 6f 6d 70 74 73 42 75 6e |fflinePr|omptsBun|
|00001800| 64 6c 65 2e 67 65 74 53 | 74 72 69 6e 67 28 27 73 |dle.getS|tring('s|
|00001810| 65 6e 64 4d 65 73 73 61 | 67 65 73 4e 6f 53 65 6e |endMessa|gesNoSen|
|00001820| 64 42 75 74 74 6f 6e 4c | 61 62 65 6c 27 29 2c 0a |dButtonL|abel'),.|
|00001830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001840| 20 20 20 20 20 20 20 20 | 20 20 67 4f 66 66 6c 69 | | gOffli|
|00001850| 6e 65 50 72 6f 6d 70 74 | 73 42 75 6e 64 6c 65 2e |nePrompt|sBundle.|
|00001860| 67 65 74 53 74 72 69 6e | 67 28 27 73 65 6e 64 4d |getStrin|g('sendM|
|00001870| 65 73 73 61 67 65 73 43 | 68 65 63 6b 62 6f 78 4c |essagesC|heckboxL|
|00001880| 61 62 65 6c 27 29 2c 20 | 0a 20 20 20 20 20 20 20 |abel'), |. |
|00001890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018a0| 20 20 20 63 68 65 63 6b | 56 61 6c 75 65 29 3b 0a | check|Value);.|
|000018b0| 20 20 20 20 69 66 28 62 | 75 74 74 6f 6e 50 72 65 | if(b|uttonPre|
|000018c0| 73 73 65 64 20 3d 3d 20 | 30 29 20 7b 0a 20 20 20 |ssed == |0) {. |
|000018d0| 20 20 20 67 4d 61 69 6c | 4f 66 66 6c 69 6e 65 50 | gMail|OfflineP|
|000018e0| 72 65 66 73 2e 73 65 74 | 49 6e 74 50 72 65 66 28 |refs.set|IntPref(|
|000018f0| 22 6f 66 66 6c 69 6e 65 | 2e 73 65 6e 64 2e 75 6e |"offline|.send.un|
|00001900| 73 65 6e 74 5f 6d 65 73 | 73 61 67 65 73 22 2c 20 |sent_mes|sages", |
|00001910| 21 63 68 65 63 6b 56 61 | 6c 75 65 2e 76 61 6c 75 |!checkVa|lue.valu|
|00001920| 65 29 3b 0a 20 20 20 20 | 20 20 67 4f 66 66 6c 69 |e);. | gOffli|
|00001930| 6e 65 4d 61 6e 61 67 65 | 72 2e 67 6f 4f 6e 6c 69 |neManage|r.goOnli|
|00001940| 6e 65 28 74 72 75 65 2c | 20 74 72 75 65 2c 20 6d |ne(true,| true, m|
|00001950| 73 67 57 69 6e 64 6f 77 | 29 3b 0a 20 20 20 20 20 |sgWindow|);. |
|00001960| 20 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0a 20 20 | return |true;. |
|00001970| 20 20 7d 0a 20 20 20 20 | 69 66 28 62 75 74 74 6f | }. |if(butto|
|00001980| 6e 50 72 65 73 73 65 64 | 20 3d 3d 20 31 29 20 7b |nPressed| == 1) {|
|00001990| 0a 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 66 61 |. r|eturn fa|
|000019a0| 6c 73 65 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 69 |lse;. | }. i|
|000019b0| 66 28 62 75 74 74 6f 6e | 50 72 65 73 73 65 64 20 |f(button|Pressed |
|000019c0| 3d 3d 20 32 29 20 7b 0a | 20 20 20 20 20 20 67 4d |== 2) {.| gM|
|000019d0| 61 69 6c 4f 66 66 6c 69 | 6e 65 50 72 65 66 73 2e |ailOffli|nePrefs.|
|000019e0| 73 65 74 49 6e 74 50 72 | 65 66 28 22 6f 66 66 6c |setIntPr|ef("offl|
|000019f0| 69 6e 65 2e 73 65 6e 64 | 2e 75 6e 73 65 6e 74 5f |ine.send|.unsent_|
|00001a00| 6d 65 73 73 61 67 65 73 | 22 2c 20 32 2a 21 63 68 |messages|", 2*!ch|
|00001a10| 65 63 6b 56 61 6c 75 65 | 2e 76 61 6c 75 65 29 3b |eckValue|.value);|
|00001a20| 0a 20 20 20 20 20 20 67 | 4f 66 66 6c 69 6e 65 4d |. g|OfflineM|
|00001a30| 61 6e 61 67 65 72 2e 67 | 6f 4f 6e 6c 69 6e 65 28 |anager.g|oOnline(|
|00001a40| 66 61 6c 73 65 2c 20 74 | 72 75 65 2c 20 6d 73 67 |false, t|rue, msg|
|00001a50| 57 69 6e 64 6f 77 29 3b | 0a 20 20 20 20 20 20 72 |Window);|. r|
|00001a60| 65 74 75 72 6e 20 74 72 | 75 65 3b 0a 20 20 20 20 |eturn tr|ue;. |
|00001a70| 7d 0a 20 20 7d 0a 20 20 | 72 65 74 75 72 6e 20 66 |}. }. |return f|
|00001a80| 61 6c 73 65 3b 0a 7d 0a | 0a 2f 2f 20 70 72 6f 6d |alse;.}.|.// prom|
|00001a90| 70 74 20 66 6f 72 20 64 | 6f 77 6e 6c 61 64 69 6e |pt for d|ownladin|
|00001aa0| 67 20 6d 65 73 73 61 67 | 65 73 20 77 68 69 6c 65 |g messag|es while|
|00001ab0| 20 67 6f 69 6e 67 20 6f | 66 66 6c 69 6e 65 2c 20 | going o|ffline, |
|00001ac0| 61 6e 64 20 73 79 6e 63 | 68 72 6f 6e 69 73 65 0a |and sync|hronise.|
|00001ad0| 66 75 6e 63 74 69 6f 6e | 20 50 72 6f 6d 70 74 44 |function| PromptD|
|00001ae0| 6f 77 6e 6c 6f 61 64 4d | 65 73 73 61 67 65 73 28 |ownloadM|essages(|
|00001af0| 29 0a 7b 0a 20 20 49 6e | 69 74 50 72 6f 6d 70 74 |).{. In|itPrompt|
|00001b00| 73 28 29 3b 0a 20 20 49 | 6e 69 74 53 65 72 76 69 |s();. I|nitServi|
|00001b10| 63 65 73 28 29 3b 0a 0a | 20 20 69 66 28 67 50 72 |ces();..| if(gPr|
|00001b20| 6f 6d 70 74 53 65 72 76 | 69 63 65 29 20 7b 0a 20 |omptServ|ice) {. |
|00001b30| 20 20 20 76 61 72 20 63 | 68 65 63 6b 56 61 6c 75 | var c|heckValu|
|00001b40| 65 20 3d 20 7b 76 61 6c | 75 65 3a 74 72 75 65 7d |e = {val|ue:true}|
|00001b50| 3b 0a 20 20 20 20 76 61 | 72 20 62 75 74 74 6f 6e |;. va|r button|
|00001b60| 50 72 65 73 73 65 64 20 | 3d 20 67 50 72 6f 6d 70 |Pressed |= gPromp|
|00001b70| 74 53 65 72 76 69 63 65 | 2e 63 6f 6e 66 69 72 6d |tService|.confirm|
|00001b80| 45 78 28 77 69 6e 64 6f | 77 2c 20 0a 20 20 20 20 |Ex(windo|w, . |
|00001b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ba0| 20 20 20 20 20 20 67 4f | 66 66 6c 69 6e 65 50 72 | gO|fflinePr|
|00001bb0| 6f 6d 70 74 73 42 75 6e | 64 6c 65 2e 67 65 74 53 |omptsBun|dle.getS|
|00001bc0| 74 72 69 6e 67 28 27 64 | 6f 77 6e 6c 6f 61 64 4d |tring('d|ownloadM|
|00001bd0| 65 73 73 61 67 65 73 57 | 69 6e 64 6f 77 54 69 74 |essagesW|indowTit|
|00001be0| 6c 65 27 29 2c 20 0a 20 | 20 20 20 20 20 20 20 20 |le'), . | |
|00001bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c00| 20 67 4f 66 66 6c 69 6e | 65 50 72 6f 6d 70 74 73 | gOfflin|ePrompts|
|00001c10| 42 75 6e 64 6c 65 2e 67 | 65 74 53 74 72 69 6e 67 |Bundle.g|etString|
|00001c20| 28 27 64 6f 77 6e 6c 6f | 61 64 4d 65 73 73 61 67 |('downlo|adMessag|
|00001c30| 65 73 4c 61 62 65 6c 27 | 29 2c 0a 20 20 20 20 20 |esLabel'|),. |
|00001c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c50| 20 20 20 20 20 67 50 72 | 6f 6d 70 74 53 65 72 76 | gPr|omptServ|
|00001c60| 69 63 65 2e 42 55 54 54 | 4f 4e 5f 54 49 54 4c 45 |ice.BUTT|ON_TITLE|
|00001c70| 5f 49 53 5f 53 54 52 49 | 4e 47 20 2a 20 28 67 50 |_IS_STRI|NG * (gP|
|00001c80| 72 6f 6d 70 74 53 65 72 | 76 69 63 65 2e 42 55 54 |romptSer|vice.BUT|
|00001c90| 54 4f 4e 5f 50 4f 53 5f | 30 20 2b 20 0a 20 20 20 |TON_POS_|0 + . |
|00001ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 67 50 72 6f 6d 70 74 | | gPrompt|
|00001cc0| 53 65 72 76 69 63 65 2e | 42 55 54 54 4f 4e 5f 50 |Service.|BUTTON_P|
|00001cd0| 4f 53 5f 31 20 2b 20 67 | 50 72 6f 6d 70 74 53 65 |OS_1 + g|PromptSe|
|00001ce0| 72 76 69 63 65 2e 42 55 | 54 54 4f 4e 5f 50 4f 53 |rvice.BU|TTON_POS|
|00001cf0| 5f 32 29 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |_2),. | |
|00001d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 67 | | g|
|00001d10| 4f 66 66 6c 69 6e 65 50 | 72 6f 6d 70 74 73 42 75 |OfflineP|romptsBu|
|00001d20| 6e 64 6c 65 2e 67 65 74 | 53 74 72 69 6e 67 28 27 |ndle.get|String('|
|00001d30| 64 6f 77 6e 6c 6f 61 64 | 4d 65 73 73 61 67 65 73 |download|Messages|
|00001d40| 44 6f 77 6e 6c 6f 61 64 | 42 75 74 74 6f 6e 4c 61 |Download|ButtonLa|
|00001d50| 62 65 6c 27 29 2c 0a 20 | 20 20 20 20 20 20 20 20 |bel'),. | |
|00001d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d70| 20 67 4f 66 66 6c 69 6e | 65 50 72 6f 6d 70 74 73 | gOfflin|ePrompts|
|00001d80| 42 75 6e 64 6c 65 2e 67 | 65 74 53 74 72 69 6e 67 |Bundle.g|etString|
|00001d90| 28 27 64 6f 77 6e 6c 6f | 61 64 4d 65 73 73 61 67 |('downlo|adMessag|
|00001da0| 65 73 43 61 6e 63 65 6c | 42 75 74 74 6f 6e 4c 61 |esCancel|ButtonLa|
|00001db0| 62 65 6c 27 29 2c 0a 20 | 20 20 20 20 20 20 20 20 |bel'),. | |
|00001dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001dd0| 20 67 4f 66 66 6c 69 6e | 65 50 72 6f 6d 70 74 73 | gOfflin|ePrompts|
|00001de0| 42 75 6e 64 6c 65 2e 67 | 65 74 53 74 72 69 6e 67 |Bundle.g|etString|
|00001df0| 28 27 64 6f 77 6e 6c 6f | 61 64 4d 65 73 73 61 67 |('downlo|adMessag|
|00001e00| 65 73 4e 6f 44 6f 77 6e | 6c 6f 61 64 42 75 74 74 |esNoDown|loadButt|
|00001e10| 6f 6e 4c 61 62 65 6c 27 | 29 2c 20 0a 20 20 20 20 |onLabel'|), . |
|00001e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e30| 20 20 20 20 20 20 67 4f | 66 66 6c 69 6e 65 50 72 | gO|fflinePr|
|00001e40| 6f 6d 70 74 73 42 75 6e | 64 6c 65 2e 67 65 74 53 |omptsBun|dle.getS|
|00001e50| 74 72 69 6e 67 28 27 64 | 6f 77 6e 6c 6f 61 64 4d |tring('d|ownloadM|
|00001e60| 65 73 73 61 67 65 73 43 | 68 65 63 6b 62 6f 78 4c |essagesC|heckboxL|
|00001e70| 61 62 65 6c 27 29 2c 20 | 0a 20 20 20 20 20 20 20 |abel'), |. |
|00001e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e90| 20 20 20 63 68 65 63 6b | 56 61 6c 75 65 29 3b 0a | check|Value);.|
|00001ea0| 20 20 20 20 69 66 28 62 | 75 74 74 6f 6e 50 72 65 | if(b|uttonPre|
|00001eb0| 73 73 65 64 20 3d 3d 20 | 30 29 20 7b 0a 20 20 20 |ssed == |0) {. |
|00001ec0| 20 20 20 67 4d 61 69 6c | 4f 66 66 6c 69 6e 65 50 | gMail|OfflineP|
|00001ed0| 72 65 66 73 2e 73 65 74 | 49 6e 74 50 72 65 66 28 |refs.set|IntPref(|
|00001ee0| 22 6f 66 66 6c 69 6e 65 | 2e 64 6f 77 6e 6c 6f 61 |"offline|.downloa|
|00001ef0| 64 2e 64 6f 77 6e 6c 6f | 61 64 5f 6d 65 73 73 61 |d.downlo|ad_messa|
|00001f00| 67 65 73 22 2c 20 21 63 | 68 65 63 6b 56 61 6c 75 |ges", !c|heckValu|
|00001f10| 65 2e 76 61 6c 75 65 29 | 3b 0a 20 20 20 20 20 20 |e.value)|;. |
|00001f20| 67 4f 66 66 6c 69 6e 65 | 4d 61 6e 61 67 65 72 2e |gOffline|Manager.|
|00001f30| 73 79 6e 63 68 72 6f 6e | 69 7a 65 46 6f 72 4f 66 |synchron|izeForOf|
|00001f40| 66 6c 69 6e 65 28 74 72 | 75 65 2c 20 74 72 75 65 |fline(tr|ue, true|
|00001f50| 2c 20 66 61 6c 73 65 2c | 20 74 72 75 65 2c 20 6d |, false,| true, m|
|00001f60| 73 67 57 69 6e 64 6f 77 | 29 3b 0a 20 20 20 20 20 |sgWindow|);. |
|00001f70| 20 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0a 20 20 | return |true;. |
|00001f80| 20 20 7d 0a 20 20 20 20 | 69 66 28 62 75 74 74 6f | }. |if(butto|
|00001f90| 6e 50 72 65 73 73 65 64 | 20 3d 3d 20 31 29 20 7b |nPressed| == 1) {|
|00001fa0| 0a 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 66 61 |. r|eturn fa|
|00001fb0| 6c 73 65 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 69 |lse;. | }. i|
|00001fc0| 66 28 62 75 74 74 6f 6e | 50 72 65 73 73 65 64 20 |f(button|Pressed |
|00001fd0| 3d 3d 20 32 29 20 7b 0a | 20 20 20 20 20 20 67 4d |== 2) {.| gM|
|00001fe0| 61 69 6c 4f 66 66 6c 69 | 6e 65 50 72 65 66 73 2e |ailOffli|nePrefs.|
|00001ff0| 73 65 74 49 6e 74 50 72 | 65 66 28 22 6f 66 66 6c |setIntPr|ef("offl|
|00002000| 69 6e 65 2e 64 6f 77 6e | 6c 6f 61 64 2e 64 6f 77 |ine.down|load.dow|
|00002010| 6e 6c 6f 61 64 5f 6d 65 | 73 73 61 67 65 73 22 2c |nload_me|ssages",|
|00002020| 20 32 2a 21 63 68 65 63 | 6b 56 61 6c 75 65 2e 76 | 2*!chec|kValue.v|
|00002030| 61 6c 75 65 29 3b 0a 20 | 20 20 20 20 20 67 4f 66 |alue);. | gOf|
|00002040| 66 6c 69 6e 65 4d 61 6e | 61 67 65 72 2e 73 79 6e |flineMan|ager.syn|
|00002050| 63 68 72 6f 6e 69 7a 65 | 46 6f 72 4f 66 66 6c 69 |chronize|ForOffli|
|00002060| 6e 65 28 66 61 6c 73 65 | 2c 20 66 61 6c 73 65 2c |ne(false|, false,|
|00002070| 20 66 61 6c 73 65 2c 20 | 74 72 75 65 2c 20 6d 73 | false, |true, ms|
|00002080| 67 57 69 6e 64 6f 77 29 | 3b 0a 20 20 20 20 20 20 |gWindow)|;. |
|00002090| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0a 20 20 20 |return t|rue;. |
|000020a0| 20 7d 0a 20 20 7d 0a 20 | 20 72 65 74 75 72 6e 20 | }. }. | return |
|000020b0| 66 61 6c 73 65 3b 0a 7d | 0a 0a 2f 2f 20 6f 6e 6c |false;.}|..// onl|
|000020c0| 69 6e 65 3f 0a 66 75 6e | 63 74 69 6f 6e 20 43 68 |ine?.fun|ction Ch|
|000020d0| 65 63 6b 4f 6e 6c 69 6e | 65 28 29 0a 7b 0a 20 20 |eckOnlin|e().{. |
|000020e0| 76 61 72 20 69 6f 53 65 | 72 76 69 63 65 20 3d 20 |var ioSe|rvice = |
|000020f0| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 63 6c 61 73 73 |Componen|ts.class|
|00002100| 65 73 5b 22 40 6d 6f 7a | 69 6c 6c 61 2e 6f 72 67 |es["@moz|illa.org|
|00002110| 2f 6e 65 74 77 6f 72 6b | 2f 69 6f 2d 73 65 72 76 |/network|/io-serv|
|00002120| 69 63 65 3b 31 22 5d 0a | 20 20 20 20 20 20 20 20 |ice;1"].| |
|00002130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002140| 20 2e 67 65 74 53 65 72 | 76 69 63 65 28 43 6f 6d | .getSer|vice(Com|
|00002150| 70 6f 6e 65 6e 74 73 2e | 69 6e 74 65 72 66 61 63 |ponents.|interfac|
|00002160| 65 73 2e 6e 73 49 49 4f | 53 65 72 76 69 63 65 29 |es.nsIIO|Service)|
|00002170| 3b 0a 20 20 72 65 74 75 | 72 6e 20 28 21 69 6f 53 |;. retu|rn (!ioS|
|00002180| 65 72 76 69 63 65 2e 6f | 66 66 6c 69 6e 65 29 3b |ervice.o|ffline);|
|00002190| 0a 7d 0a 0a 2f 2f 20 49 | 6e 69 74 20 50 72 65 66 |.}..// I|nit Pref|
|000021a0| 20 53 65 72 76 69 63 65 | 20 26 20 4f 66 66 6c 69 | Service| & Offli|
|000021b0| 6e 65 20 4d 61 6e 61 67 | 65 72 0a 66 75 6e 63 74 |ne Manag|er.funct|
|000021c0| 69 6f 6e 20 49 6e 69 74 | 53 65 72 76 69 63 65 73 |ion Init|Services|
|000021d0| 28 29 0a 7b 0a 20 20 69 | 66 20 28 21 67 4d 61 69 |().{. i|f (!gMai|
|000021e0| 6c 4f 66 66 6c 69 6e 65 | 50 72 65 66 73 29 20 0a |lOffline|Prefs) .|
|000021f0| 20 20 20 20 47 65 74 4d | 61 69 6c 4f 66 66 6c 69 | GetM|ailOffli|
|00002200| 6e 65 50 72 65 66 73 28 | 29 3b 0a 0a 20 20 69 66 |nePrefs(|);.. if|
|00002210| 20 28 21 67 4f 66 66 6c | 69 6e 65 4d 61 6e 61 67 | (!gOffl|ineManag|
|00002220| 65 72 29 20 0a 20 20 20 | 20 47 65 74 4f 66 66 6c |er) . | GetOffl|
|00002230| 69 6e 65 4d 67 72 53 65 | 72 76 69 63 65 28 29 3b |ineMgrSe|rvice();|
|00002240| 0a 7d 0a 0a 2f 2f 20 49 | 6e 69 74 20 4f 66 66 6c |.}..// I|nit Offl|
|00002250| 69 6e 65 20 4d 61 6e 61 | 67 65 72 0a 66 75 6e 63 |ine Mana|ger.func|
|00002260| 74 69 6f 6e 20 47 65 74 | 4f 66 66 6c 69 6e 65 4d |tion Get|OfflineM|
|00002270| 67 72 53 65 72 76 69 63 | 65 28 29 0a 7b 0a 20 20 |grServic|e().{. |
|00002280| 69 66 20 28 21 67 4f 66 | 66 6c 69 6e 65 4d 61 6e |if (!gOf|flineMan|
|00002290| 61 67 65 72 29 20 7b 0a | 20 20 20 20 67 4f 66 66 |ager) {.| gOff|
|000022a0| 6c 69 6e 65 4d 61 6e 61 | 67 65 72 20 3d 20 43 6f |lineMana|ger = Co|
|000022b0| 6d 70 6f 6e 65 6e 74 73 | 2e 63 6c 61 73 73 65 73 |mponents|.classes|
|000022c0| 5b 22 40 6d 6f 7a 69 6c | 6c 61 2e 6f 72 67 2f 6d |["@mozil|la.org/m|
|000022d0| 65 73 73 65 6e 67 65 72 | 2f 6f 66 66 6c 69 6e 65 |essenger|/offline|
|000022e0| 2d 6d 61 6e 61 67 65 72 | 3b 31 22 5d 20 20 20 20 |-manager|;1"] |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 20 20 | | . |
|00002300| 20 20 20 20 20 20 2e 67 | 65 74 53 65 72 76 69 63 | .g|etServic|
|00002310| 65 28 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |e(Compon|ents.int|
|00002320| 65 72 66 61 63 65 73 2e | 6e 73 49 4d 73 67 4f 66 |erfaces.|nsIMsgOf|
|00002330| 66 6c 69 6e 65 4d 61 6e | 61 67 65 72 29 3b 0a 20 |flineMan|ager);. |
|00002340| 20 7d 0a 7d 0a 0a 2f 2f | 20 54 68 69 73 20 66 75 | }.}..//| This fu|
|00002350| 6e 63 74 69 6f 6e 20 6d | 75 73 74 20 61 6c 77 61 |nction m|ust alwa|
|00002360| 79 73 20 72 65 74 75 72 | 6e 20 66 61 6c 73 65 20 |ys retur|n false |
|00002370| 74 6f 20 70 72 65 76 65 | 6e 74 20 74 6f 67 67 6c |to preve|nt toggl|
|00002380| 69 6e 67 20 6f 66 20 6f | 66 66 6c 69 6e 65 20 73 |ing of o|ffline s|
|00002390| 74 61 74 65 20 62 65 63 | 61 75 73 65 0a 2f 2f 20 |tate bec|ause.// |
|000023a0| 77 65 20 63 68 61 6e 67 | 65 20 74 68 65 20 6f 66 |we chang|e the of|
|000023b0| 66 6c 69 6e 65 20 73 74 | 61 74 65 20 6f 75 72 73 |fline st|ate ours|
|000023c0| 65 6c 76 65 73 0a 66 75 | 6e 63 74 69 6f 6e 20 4d |elves.fu|nction M|
|000023d0| 61 69 6c 43 68 65 63 6b | 42 65 66 6f 72 65 4f 66 |ailCheck|BeforeOf|
|000023e0| 66 6c 69 6e 65 43 68 61 | 6e 67 65 28 29 0a 7b 0a |flineCha|nge().{.|
|000023f0| 20 20 76 61 72 20 69 6f | 53 65 72 76 69 63 65 20 | var io|Service |
|00002400| 3d 20 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 63 6c 61 |= Compon|ents.cla|
|00002410| 73 73 65 73 5b 22 40 6d | 6f 7a 69 6c 6c 61 2e 6f |sses["@m|ozilla.o|
|00002420| 72 67 2f 6e 65 74 77 6f | 72 6b 2f 69 6f 2d 73 65 |rg/netwo|rk/io-se|
|00002430| 72 76 69 63 65 3b 31 22 | 5d 0a 20 20 20 20 20 20 |rvice;1"|]. |
|00002440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002450| 20 20 20 20 20 20 2e 67 | 65 74 53 65 72 76 69 63 | .g|etServic|
|00002460| 65 28 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |e(Compon|ents.int|
|00002470| 65 72 66 61 63 65 73 2e | 6e 73 49 49 4f 53 65 72 |erfaces.|nsIIOSer|
|00002480| 76 69 63 65 29 3b 0a 0a | 20 20 76 61 72 20 67 6f |vice);..| var go|
|00002490| 69 6e 67 4f 6e 6c 69 6e | 65 20 3d 20 69 6f 53 65 |ingOnlin|e = ioSe|
|000024a0| 72 76 69 63 65 2e 6f 66 | 66 6c 69 6e 65 3b 0a 20 |rvice.of|fline;. |
|000024b0| 20 76 61 72 20 62 75 6e | 64 6c 65 20 3d 20 73 72 | var bun|dle = sr|
|000024c0| 47 65 74 53 74 72 42 75 | 6e 64 6c 65 28 22 63 68 |GetStrBu|ndle("ch|
|000024d0| 72 6f 6d 65 3a 2f 2f 63 | 6f 6d 6d 75 6e 69 63 61 |rome://c|ommunica|
|000024e0| 74 6f 72 2f 6c 6f 63 61 | 6c 65 2f 75 74 69 6c 69 |tor/loca|le/utili|
|000024f0| 74 79 4f 76 65 72 6c 61 | 79 2e 70 72 6f 70 65 72 |tyOverla|y.proper|
|00002500| 74 69 65 73 22 29 3b 0a | 0a 2f 2f 20 20 6d 65 73 |ties");.|.// mes|
|00002510| 73 65 6e 67 65 72 2e 53 | 65 74 57 69 6e 64 6f 77 |senger.S|etWindow|
|00002520| 28 77 69 6e 64 6f 77 2c | 20 6d 73 67 57 69 6e 64 |(window,| msgWind|
|00002530| 6f 77 29 3b 0a 0a 20 20 | 49 6e 69 74 53 65 72 76 |ow);.. |InitServ|
|00002540| 69 63 65 73 28 29 3b 0a | 0a 20 20 76 61 72 20 70 |ices();.|. var p|
|00002550| 72 65 66 53 65 6e 64 55 | 6e 73 65 6e 74 4d 65 73 |refSendU|nsentMes|
|00002560| 73 61 67 65 73 20 3d 20 | 67 4d 61 69 6c 4f 66 66 |sages = |gMailOff|
|00002570| 6c 69 6e 65 50 72 65 66 | 73 2e 67 65 74 49 6e 74 |linePref|s.getInt|
|00002580| 50 72 65 66 28 22 6f 66 | 66 6c 69 6e 65 2e 73 65 |Pref("of|fline.se|
|00002590| 6e 64 2e 75 6e 73 65 6e | 74 5f 6d 65 73 73 61 67 |nd.unsen|t_messag|
|000025a0| 65 73 22 29 3b 0a 20 20 | 76 61 72 20 70 72 65 66 |es");. |var pref|
|000025b0| 44 6f 77 6e 6c 6f 61 64 | 4d 65 73 73 61 67 65 73 |Download|Messages|
|000025c0| 20 20 20 3d 20 67 4d 61 | 69 6c 4f 66 66 6c 69 6e | = gMa|ilOfflin|
|000025d0| 65 50 72 65 66 73 2e 67 | 65 74 49 6e 74 50 72 65 |ePrefs.g|etIntPre|
|000025e0| 66 28 22 6f 66 66 6c 69 | 6e 65 2e 64 6f 77 6e 6c |f("offli|ne.downl|
|000025f0| 6f 61 64 2e 64 6f 77 6e | 6c 6f 61 64 5f 6d 65 73 |oad.down|load_mes|
|00002600| 73 61 67 65 73 22 29 3b | 0a 0a 20 20 69 66 28 67 |sages");|.. if(g|
|00002610| 6f 69 6e 67 4f 6e 6c 69 | 6e 65 29 20 7b 0a 20 20 |oingOnli|ne) {. |
|00002620| 20 20 73 77 69 74 63 68 | 28 70 72 65 66 53 65 6e | switch|(prefSen|
|00002630| 64 55 6e 73 65 6e 74 4d | 65 73 73 61 67 65 73 29 |dUnsentM|essages)|
|00002640| 20 7b 20 0a 20 20 20 20 | 63 61 73 65 20 30 3a 0a | { . |case 0:.|
|00002650| 20 20 20 20 20 20 69 66 | 28 43 68 65 63 6b 46 6f | if|(CheckFo|
|00002660| 72 55 6e 73 65 6e 74 4d | 65 73 73 61 67 65 73 28 |rUnsentM|essages(|
|00002670| 29 29 20 7b 20 0a 20 20 | 20 20 20 20 20 20 69 66 |)) { . | if|
|00002680| 28 21 20 50 72 6f 6d 70 | 74 53 65 6e 64 4d 65 73 |(! Promp|tSendMes|
|00002690| 73 61 67 65 73 28 29 29 | 20 0a 20 20 20 20 20 20 |sages())| . |
|000026a0| 20 20 20 20 72 65 74 75 | 72 6e 20 66 61 6c 73 65 | retu|rn false|
|000026b0| 3b 0a 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 |;. |}. |
|000026c0| 65 6c 73 65 20 0a 20 20 | 20 20 20 20 20 20 67 4f |else . | gO|
|000026d0| 66 66 6c 69 6e 65 4d 61 | 6e 61 67 65 72 2e 67 6f |fflineMa|nager.go|
|000026e0| 4f 6e 6c 69 6e 65 28 66 | 61 6c 73 65 20 2f 2a 20 |Online(f|alse /* |
|000026f0| 73 65 6e 64 55 6e 73 65 | 6e 74 4d 65 73 73 61 67 |sendUnse|ntMessag|
|00002700| 65 73 20 2a 2f 2c 20 0a | 20 20 20 20 20 20 20 20 |es */, .| |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002720| 20 20 20 20 20 20 20 20 | 20 74 72 75 65 20 2f 2a | | true /*|
|00002730| 20 70 6c 61 79 62 61 63 | 6b 4f 66 66 6c 69 6e 65 | playbac|kOffline|
|00002740| 49 6d 61 70 4f 70 65 72 | 61 74 69 6f 6e 73 20 2a |ImapOper|ations *|
|00002750| 2f 2c 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |/, . | |
|00002760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002770| 20 20 20 20 20 6d 73 67 | 57 69 6e 64 6f 77 29 3b | msg|Window);|
|00002780| 0a 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0a 20 20 |. b|reak;. |
|00002790| 20 20 63 61 73 65 20 31 | 3a 0a 20 20 20 20 20 20 | case 1|:. |
|000027a0| 67 4f 66 66 6c 69 6e 65 | 4d 61 6e 61 67 65 72 2e |gOffline|Manager.|
|000027b0| 67 6f 4f 6e 6c 69 6e 65 | 28 43 68 65 63 6b 46 6f |goOnline|(CheckFo|
|000027c0| 72 55 6e 73 65 6e 74 4d | 65 73 73 61 67 65 73 28 |rUnsentM|essages(|
|000027d0| 29 20 2f 2a 20 73 65 6e | 64 55 6e 73 65 6e 74 4d |) /* sen|dUnsentM|
|000027e0| 65 73 73 61 67 65 73 20 | 2a 2f 2c 20 0a 20 20 20 |essages |*/, . |
|000027f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002800| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 72 75 65 | | true|
|00002810| 20 20 2f 2a 20 70 6c 61 | 79 62 61 63 6b 4f 66 66 | /* pla|ybackOff|
|00002820| 6c 69 6e 65 49 6d 61 70 | 4f 70 65 72 61 74 69 6f |lineImap|Operatio|
|00002830| 6e 73 20 2a 2f 2c 20 0a | 20 20 20 20 20 20 20 20 |ns */, .| |
|00002840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002850| 20 20 20 20 20 20 20 6d | 73 67 57 69 6e 64 6f 77 | m|sgWindow|
|00002860| 29 3b 0a 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a |);. | break;.|
|00002870| 20 20 20 20 63 61 73 65 | 20 32 3a 0a 20 20 20 20 | case| 2:. |
|00002880| 20 20 67 4f 66 66 6c 69 | 6e 65 4d 61 6e 61 67 65 | gOffli|neManage|
|00002890| 72 2e 67 6f 4f 6e 6c 69 | 6e 65 28 66 61 6c 73 65 |r.goOnli|ne(false|
|000028a0| 20 2f 2a 20 73 65 6e 64 | 55 6e 73 65 6e 74 4d 65 | /* send|UnsentMe|
|000028b0| 73 73 61 67 65 73 20 2a | 2f 2c 20 0a 20 20 20 20 |ssages *|/, . |
|000028c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028d0| 20 20 20 20 20 20 20 20 | 20 20 20 74 72 75 65 20 | | true |
|000028e0| 2f 2a 20 70 6c 61 79 62 | 61 63 6b 4f 66 66 6c 69 |/* playb|ackOffli|
|000028f0| 6e 65 49 6d 61 70 4f 70 | 65 72 61 74 69 6f 6e 73 |neImapOp|erations|
|00002900| 20 2a 2f 2c 20 0a 20 20 | 20 20 20 20 20 20 20 20 | */, . | |
|00002910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002920| 20 20 20 20 20 6d 73 67 | 57 69 6e 64 6f 77 29 3b | msg|Window);|
|00002930| 0a 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0a 20 20 |. b|reak;. |
|00002940| 20 20 7d 0a 20 20 7d 0a | 20 20 65 6c 73 65 20 7b | }. }.| else {|
|00002950| 0a 20 20 20 20 2f 2f 20 | 67 6f 69 6e 67 20 6f 66 |. // |going of|
|00002960| 66 6c 69 6e 65 0a 20 20 | 20 20 73 77 69 74 63 68 |fline. | switch|
|00002970| 28 70 72 65 66 44 6f 77 | 6e 6c 6f 61 64 4d 65 73 |(prefDow|nloadMes|
|00002980| 73 61 67 65 73 29 20 7b | 09 0a 20 20 20 20 20 20 |sages) {|.. |
|00002990| 63 61 73 65 20 30 3a 0a | 20 20 20 20 20 20 20 20 |case 0:.| |
|000029a0| 69 66 28 21 20 50 72 6f | 6d 70 74 44 6f 77 6e 6c |if(! Pro|mptDownl|
|000029b0| 6f 61 64 4d 65 73 73 61 | 67 65 73 28 29 29 20 72 |oadMessa|ges()) r|
|000029c0| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0a 20 20 20 |eturn fa|lse;. |
|000029d0| 20 20 20 62 72 65 61 6b | 3b 0a 20 20 20 20 20 20 | break|;. |
|000029e0| 63 61 73 65 20 31 3a 0a | 20 20 20 20 20 20 20 20 |case 1:.| |
|000029f0| 2f 2f 20 64 6f 77 6e 6c | 6f 61 64 20 6e 65 77 73 |// downl|oad news|
|00002a00| 2c 20 64 6f 77 6e 6c 6f | 61 64 20 6d 61 69 6c 2c |, downlo|ad mail,|
|00002a10| 20 73 65 6e 64 20 75 6e | 73 65 6e 74 20 6d 65 73 | send un|sent mes|
|00002a20| 73 61 67 65 73 2c 20 67 | 6f 20 6f 66 66 6c 69 6e |sages, g|o offlin|
|00002a30| 65 20 77 68 65 6e 20 64 | 6f 6e 65 2c 20 6d 73 67 |e when d|one, msg|
|00002a40| 20 77 69 6e 64 6f 77 0a | 20 20 20 20 20 20 20 20 | window.| |
|00002a50| 67 4f 66 66 6c 69 6e 65 | 4d 61 6e 61 67 65 72 2e |gOffline|Manager.|
|00002a60| 73 79 6e 63 68 72 6f 6e | 69 7a 65 46 6f 72 4f 66 |synchron|izeForOf|
|00002a70| 66 6c 69 6e 65 28 74 72 | 75 65 2c 20 74 72 75 65 |fline(tr|ue, true|
|00002a80| 2c 20 66 61 6c 73 65 2c | 20 74 72 75 65 2c 20 6d |, false,| true, m|
|00002a90| 73 67 57 69 6e 64 6f 77 | 29 3b 0a 20 20 20 20 20 |sgWindow|);. |
|00002aa0| 20 20 20 62 72 65 61 6b | 3b 0a 20 20 20 20 20 20 | break|;. |
|00002ab0| 63 61 73 65 20 32 3a 0a | 20 20 20 20 20 20 20 20 |case 2:.| |
|00002ac0| 2f 2f 20 64 6f 77 6e 6c | 6f 61 64 20 6e 65 77 73 |// downl|oad news|
|00002ad0| 2c 20 64 6f 77 6e 6c 6f | 61 64 20 6d 61 69 6c 2c |, downlo|ad mail,|
|00002ae0| 20 73 65 6e 64 20 75 6e | 73 65 6e 74 20 6d 65 73 | send un|sent mes|
|00002af0| 73 61 67 65 73 2c 20 67 | 6f 20 6f 66 66 6c 69 6e |sages, g|o offlin|
|00002b00| 65 20 77 68 65 6e 20 64 | 6f 6e 65 2c 20 6d 73 67 |e when d|one, msg|
|00002b10| 20 77 69 6e 64 6f 77 0a | 20 20 20 20 20 20 20 20 | window.| |
|00002b20| 67 4f 66 66 6c 69 6e 65 | 4d 61 6e 61 67 65 72 2e |gOffline|Manager.|
|00002b30| 73 79 6e 63 68 72 6f 6e | 69 7a 65 46 6f 72 4f 66 |synchron|izeForOf|
|00002b40| 66 6c 69 6e 65 28 66 61 | 6c 73 65 2c 20 66 61 6c |fline(fa|lse, fal|
|00002b50| 73 65 2c 20 66 61 6c 73 | 65 2c 20 74 72 75 65 2c |se, fals|e, true,|
|00002b60| 20 6d 73 67 57 69 6e 64 | 6f 77 29 3b 0a 20 20 20 | msgWind|ow);. |
|00002b70| 20 20 20 20 20 62 72 65 | 61 6b 3b 0a 20 20 20 20 | bre|ak;. |
|00002b80| 7d 0a 20 20 7d 0a 20 20 | 72 65 74 75 72 6e 20 66 |}. }. |return f|
|00002b90| 61 6c 73 65 3b 0a 7d 0a | 0a 50 4b 03 04 0a 00 00 |alse;.}.|.PK.....|
|00002ba0| 00 00 00 95 ac 16 31 9a | 3d d3 fa a8 05 00 00 a8 |......1.|=.......|
|00002bb0| 05 00 00 26 00 15 00 63 | 6f 6e 74 65 6e 74 2f 6d |...&...c|ontent/m|
|00002bc0| 65 73 73 65 6e 67 65 72 | 2d 6f 66 66 6c 69 6e 65 |essenger|-offline|
|00002bd0| 2f 63 6f 6e 74 65 6e 74 | 73 2e 72 64 66 55 54 09 |/content|s.rdfUT.|
|00002be0| 00 03 59 74 29 41 b6 78 | b4 41 55 78 04 00 eb 03 |..Yt)A.x|.AUx....|
|00002bf0| 01 02 3c 3f 78 6d 6c 20 | 76 65 72 73 69 6f 6e 3d |..<?xml |version=|
|00002c00| 22 31 2e 30 22 3f 3e 0a | 0a 3c 52 44 46 3a 52 44 |"1.0"?>.|.<RDF:RD|
|00002c10| 46 20 78 6d 6c 6e 73 3a | 52 44 46 3d 22 68 74 74 |F xmlns:|RDF="htt|
|00002c20| 70 3a 2f 2f 77 77 77 2e | 77 33 2e 6f 72 67 2f 31 |p://www.|w3.org/1|
|00002c30| 39 39 39 2f 30 32 2f 32 | 32 2d 72 64 66 2d 73 79 |999/02/2|2-rdf-sy|
|00002c40| 6e 74 61 78 2d 6e 73 23 | 22 0a 20 20 20 20 20 20 |ntax-ns#|". |
|00002c50| 20 20 20 78 6d 6c 6e 73 | 3a 63 68 72 6f 6d 65 3d | xmlns|:chrome=|
|00002c60| 22 68 74 74 70 3a 2f 2f | 77 77 77 2e 6d 6f 7a 69 |"http://|www.mozi|
|00002c70| 6c 6c 61 2e 6f 72 67 2f | 72 64 66 2f 63 68 72 6f |lla.org/|rdf/chro|
|00002c80| 6d 65 23 22 3e 0a 0a 20 | 20 3c 21 2d 2d 20 6c 69 |me#">.. | <!-- li|
|00002c90| 73 74 20 61 6c 6c 20 74 | 68 65 20 70 61 63 6b 61 |st all t|he packa|
|00002ca0| 67 65 73 20 62 65 69 6e | 67 20 73 75 70 70 6c 69 |ges bein|g suppli|
|00002cb0| 65 64 20 62 79 20 74 68 | 69 73 20 6a 61 72 20 2d |ed by th|is jar -|
|00002cc0| 2d 3e 0a 20 20 3c 52 44 | 46 3a 53 65 71 20 61 62 |->. <RD|F:Seq ab|
|00002cd0| 6f 75 74 3d 22 75 72 6e | 3a 6d 6f 7a 69 6c 6c 61 |out="urn|:mozilla|
|00002ce0| 3a 70 61 63 6b 61 67 65 | 3a 72 6f 6f 74 22 3e 0a |:package|:root">.|
|00002cf0| 20 20 20 20 3c 52 44 46 | 3a 6c 69 20 72 65 73 6f | <RDF|:li reso|
|00002d00| 75 72 63 65 3d 22 75 72 | 6e 3a 6d 6f 7a 69 6c 6c |urce="ur|n:mozill|
|00002d10| 61 3a 70 61 63 6b 61 67 | 65 3a 6d 65 73 73 65 6e |a:packag|e:messen|
|00002d20| 67 65 72 2d 6f 66 66 6c | 69 6e 65 22 2f 3e 0a 20 |ger-offl|ine"/>. |
|00002d30| 20 3c 2f 52 44 46 3a 53 | 65 71 3e 0a 0a 20 20 3c | </RDF:S|eq>.. <|
|00002d40| 21 2d 2d 20 70 61 63 6b | 61 67 65 20 69 6e 66 6f |!-- pack|age info|
|00002d50| 72 6d 61 74 69 6f 6e 20 | 2d 2d 3e 0a 20 20 3c 52 |rmation |-->. <R|
|00002d60| 44 46 3a 44 65 73 63 72 | 69 70 74 69 6f 6e 20 61 |DF:Descr|iption a|
|00002d70| 62 6f 75 74 3d 22 75 72 | 6e 3a 6d 6f 7a 69 6c 6c |bout="ur|n:mozill|
|00002d80| 61 3a 70 61 63 6b 61 67 | 65 3a 6d 65 73 73 65 6e |a:packag|e:messen|
|00002d90| 67 65 72 2d 6f 66 66 6c | 69 6e 65 22 0a 20 20 20 |ger-offl|ine". |
|00002da0| 20 20 20 20 20 63 68 72 | 6f 6d 65 3a 64 69 73 70 | chr|ome:disp|
|00002db0| 6c 61 79 4e 61 6d 65 3d | 22 4f 66 66 6c 69 6e 65 |layName=|"Offline|
|00002dc0| 20 53 75 70 70 6f 72 74 | 22 0a 20 20 20 20 20 20 | Support|". |
|00002dd0| 20 20 63 68 72 6f 6d 65 | 3a 61 75 74 68 6f 72 3d | chrome|:author=|
|00002de0| 22 54 65 61 6d 20 54 68 | 75 6e 64 65 72 62 69 72 |"Team Th|underbir|
|00002df0| 64 22 0a 20 20 20 20 20 | 20 20 20 63 68 72 6f 6d |d". | chrom|
|00002e00| 65 3a 61 75 74 68 6f 72 | 55 52 4c 3d 22 68 74 74 |e:author|URL="htt|
|00002e10| 70 3a 2f 2f 77 77 77 2e | 6d 6f 7a 69 6c 6c 61 2e |p://www.|mozilla.|
|00002e20| 6f 72 67 2f 70 72 6f 6a | 65 63 74 73 2f 74 68 75 |org/proj|ects/thu|
|00002e30| 6e 64 65 72 62 69 72 64 | 2f 73 70 65 63 73 2f 6f |nderbird|/specs/o|
|00002e40| 66 66 6c 69 6e 65 2e 68 | 74 6d 6c 22 0a 20 20 20 |ffline.h|tml". |
|00002e50| 20 20 20 20 20 63 68 72 | 6f 6d 65 3a 6e 61 6d 65 | chr|ome:name|
|00002e60| 3d 22 6d 65 73 73 65 6e | 67 65 72 2d 6f 66 66 6c |="messen|ger-offl|
|00002e70| 69 6e 65 22 0a 20 20 20 | 20 20 20 20 20 63 68 72 |ine". | chr|
|00002e80| 6f 6d 65 3a 64 65 73 63 | 72 69 70 74 69 6f 6e 3d |ome:desc|ription=|
|00002e90| 22 54 68 69 73 20 65 78 | 74 65 6e 73 69 6f 6e 20 |"This ex|tension |
|00002ea0| 61 64 64 73 20 6f 66 66 | 6c 69 6e 65 20 73 75 70 |adds off|line sup|
|00002eb0| 70 6f 72 74 20 74 6f 20 | 4d 6f 7a 69 6c 6c 61 20 |port to |Mozilla |
|00002ec0| 54 68 75 6e 64 65 72 62 | 69 72 64 2e 22 20 0a 20 |Thunderb|ird." . |
|00002ed0| 20 20 20 20 20 20 20 63 | 68 72 6f 6d 65 3a 73 65 | c|hrome:se|
|00002ee0| 74 74 69 6e 67 73 55 52 | 4c 3d 22 63 68 72 6f 6d |ttingsUR|L="chrom|
|00002ef0| 65 3a 2f 2f 6d 65 73 73 | 65 6e 67 65 72 2d 6f 66 |e://mess|enger-of|
|00002f00| 66 6c 69 6e 65 2f 63 6f | 6e 74 65 6e 74 2f 70 72 |fline/co|ntent/pr|
|00002f10| 65 66 2d 6f 66 66 6c 69 | 6e 65 2e 78 75 6c 22 0a |ef-offli|ne.xul".|
|00002f20| 63 68 72 6f 6d 65 3a 6c | 6f 63 61 6c 65 56 65 72 |chrome:l|ocaleVer|
|00002f30| 73 69 6f 6e 3d 22 31 2e | 37 22 0a 63 68 72 6f 6d |sion="1.|7".chrom|
|00002f40| 65 3a 73 6b 69 6e 56 65 | 72 73 69 6f 6e 3d 22 31 |e:skinVe|rsion="1|
|00002f50| 2e 35 22 3e 0a 20 20 3c | 2f 52 44 46 3a 44 65 73 |.5">. <|/RDF:Des|
|00002f60| 63 72 69 70 74 69 6f 6e | 3e 0a 0a 20 20 3c 21 2d |cription|>.. <!-|
|00002f70| 2d 20 6f 76 65 72 6c 61 | 79 20 69 6e 66 6f 72 6d |- overla|y inform|
|00002f80| 61 74 69 6f 6e 20 2d 2d | 3e 0a 20 20 3c 52 44 46 |ation --|>. <RDF|
|00002f90| 3a 53 65 71 20 61 62 6f | 75 74 3d 22 75 72 6e 3a |:Seq abo|ut="urn:|
|00002fa0| 6d 6f 7a 69 6c 6c 61 3a | 6f 76 65 72 6c 61 79 73 |mozilla:|overlays|
|00002fb0| 22 3e 0a 20 20 20 20 3c | 52 44 46 3a 6c 69 20 72 |">. <|RDF:li r|
|00002fc0| 65 73 6f 75 72 63 65 3d | 22 63 68 72 6f 6d 65 3a |esource=|"chrome:|
|00002fd0| 2f 2f 6d 65 73 73 65 6e | 67 65 72 2f 63 6f 6e 74 |//messen|ger/cont|
|00002fe0| 65 6e 74 2f 6d 61 69 6c | 57 69 6e 64 6f 77 4f 76 |ent/mail|WindowOv|
|00002ff0| 65 72 6c 61 79 2e 78 75 | 6c 22 2f 3e 0a 20 20 20 |erlay.xu|l"/>. |
|00003000| 20 3c 52 44 46 3a 6c 69 | 20 72 65 73 6f 75 72 63 | <RDF:li| resourc|
|00003010| 65 3d 22 63 68 72 6f 6d | 65 3a 2f 2f 6d 65 73 73 |e="chrom|e://mess|
|00003020| 65 6e 67 65 72 2f 63 6f | 6e 74 65 6e 74 2f 70 72 |enger/co|ntent/pr|
|00003030| 65 66 2d 61 64 76 61 6e | 63 65 64 2e 78 75 6c 22 |ef-advan|ced.xul"|
|00003040| 2f 3e 0a 20 20 3c 2f 52 | 44 46 3a 53 65 71 3e 0a |/>. </R|DF:Seq>.|
|00003050| 0a 20 20 3c 52 44 46 3a | 53 65 71 20 61 62 6f 75 |. <RDF:|Seq abou|
|00003060| 74 3d 22 63 68 72 6f 6d | 65 3a 2f 2f 6d 65 73 73 |t="chrom|e://mess|
|00003070| 65 6e 67 65 72 2f 63 6f | 6e 74 65 6e 74 2f 6d 61 |enger/co|ntent/ma|
|00003080| 69 6c 57 69 6e 64 6f 77 | 4f 76 65 72 6c 61 79 2e |ilWindow|Overlay.|
|00003090| 78 75 6c 22 3e 0a 20 20 | 20 20 3c 52 44 46 3a 6c |xul">. | <RDF:l|
|000030a0| 69 3e 63 68 72 6f 6d 65 | 3a 2f 2f 6d 65 73 73 65 |i>chrome|://messe|
|000030b0| 6e 67 65 72 2d 6f 66 66 | 6c 69 6e 65 2f 63 6f 6e |nger-off|line/con|
|000030c0| 74 65 6e 74 2f 6d 73 67 | 4f 66 66 6c 69 6e 65 4f |tent/msg|OfflineO|
|000030d0| 76 65 72 6c 61 79 2e 78 | 75 6c 3c 2f 52 44 46 3a |verlay.x|ul</RDF:|
|000030e0| 6c 69 3e 0a 20 20 3c 2f | 52 44 46 3a 53 65 71 3e |li>. </|RDF:Seq>|
|000030f0| 0a 0a 20 20 3c 52 44 46 | 3a 53 65 71 20 61 62 6f |.. <RDF|:Seq abo|
|00003100| 75 74 3d 22 63 68 72 6f | 6d 65 3a 2f 2f 6d 65 73 |ut="chro|me://mes|
|00003110| 73 65 6e 67 65 72 2f 63 | 6f 6e 74 65 6e 74 2f 70 |senger/c|ontent/p|
|00003120| 72 65 66 2d 61 64 76 61 | 6e 63 65 64 2e 78 75 6c |ref-adva|nced.xul|
|00003130| 22 3e 0a 20 20 20 20 3c | 52 44 46 3a 6c 69 3e 63 |">. <|RDF:li>c|
|00003140| 68 72 6f 6d 65 3a 2f 2f | 6d 65 73 73 65 6e 67 65 |hrome://|messenge|
|00003150| 72 2d 6f 66 66 6c 69 6e | 65 2f 63 6f 6e 74 65 6e |r-offlin|e/conten|
|00003160| 74 2f 6d 73 67 4f 66 66 | 6c 69 6e 65 4f 76 65 72 |t/msgOff|lineOver|
|00003170| 6c 61 79 2e 78 75 6c 3c | 2f 52 44 46 3a 6c 69 3e |lay.xul<|/RDF:li>|
|00003180| 0a 20 20 3c 2f 52 44 46 | 3a 53 65 71 3e 0a 0a 3c |. </RDF|:Seq>..<|
|00003190| 2f 52 44 46 3a 52 44 46 | 3e 0a 50 4b 03 04 0a 00 |/RDF:RDF|>.PK....|
|000031a0| 00 00 00 00 35 52 0b 31 | 97 b9 8d c1 36 12 00 00 |....5R.1|....6...|
|000031b0| 36 12 00 00 2a 00 15 00 | 63 6f 6e 74 65 6e 74 2f |6...*...|content/|
|000031c0| 6d 65 73 73 65 6e 67 65 | 72 2d 6f 66 66 6c 69 6e |messenge|r-offlin|
|000031d0| 65 2f 70 72 65 66 2d 6f | 66 66 6c 69 6e 65 2e 78 |e/pref-o|ffline.x|
|000031e0| 75 6c 55 54 09 00 03 b5 | 54 1a 41 b6 78 b4 41 55 |ulUT....|T.A.x.AU|
|000031f0| 78 04 00 eb 03 01 02 3c | 3f 78 6d 6c 20 76 65 72 |x......<|?xml ver|
|00003200| 73 69 6f 6e 3d 22 31 2e | 30 22 3f 3e 20 0a 0a 0a |sion="1.|0"?> ...|
|00003210| 3c 3f 78 6d 6c 2d 73 74 | 79 6c 65 73 68 65 65 74 |<?xml-st|ylesheet|
|00003220| 20 68 72 65 66 3d 22 63 | 68 72 6f 6d 65 3a 2f 2f | href="c|hrome://|
|00003230| 67 6c 6f 62 61 6c 2f 73 | 6b 69 6e 2f 22 20 74 79 |global/s|kin/" ty|
|00003240| 70 65 3d 22 74 65 78 74 | 2f 63 73 73 22 3f 3e 0a |pe="text|/css"?>.|
|00003250| 0a 3c 21 44 4f 43 54 59 | 50 45 20 64 69 61 6c 6f |.<!DOCTY|PE dialo|
|00003260| 67 20 53 59 53 54 45 4d | 20 22 63 68 72 6f 6d 65 |g SYSTEM| "chrome|
|00003270| 3a 2f 2f 6d 65 73 73 65 | 6e 67 65 72 2d 6f 66 66 |://messe|nger-off|
|00003280| 6c 69 6e 65 2f 6c 6f 63 | 61 6c 65 2f 70 72 65 66 |line/loc|ale/pref|
|00003290| 2d 6f 66 66 6c 69 6e 65 | 2e 64 74 64 22 3e 0a 0a |-offline|.dtd">..|
|000032a0| 3c 64 69 61 6c 6f 67 20 | 78 6d 6c 6e 73 3d 22 68 |<dialog |xmlns="h|
|000032b0| 74 74 70 3a 2f 2f 77 77 | 77 2e 6d 6f 7a 69 6c 6c |ttp://ww|w.mozill|
|000032c0| 61 2e 6f 72 67 2f 6b 65 | 79 6d 61 73 74 65 72 2f |a.org/ke|ymaster/|
|000032d0| 67 61 74 65 6b 65 65 70 | 65 72 2f 74 68 65 72 65 |gatekeep|er/there|
|000032e0| 2e 69 73 2e 6f 6e 6c 79 | 2e 78 75 6c 22 0a 20 20 |.is.only|.xul". |
|000032f0| 20 20 20 20 20 20 6f 6e | 6c 6f 61 64 3d 22 69 6e | on|load="in|
|00003300| 69 74 28 29 3b 22 0a 20 | 20 20 20 20 20 20 20 62 |it();". | b|
|00003310| 75 74 74 6f 6e 73 3d 22 | 61 63 63 65 70 74 2c 20 |uttons="|accept, |
|00003320| 63 61 6e 63 65 6c 22 0a | 20 20 20 20 20 20 20 20 |cancel".| |
|00003330| 6f 6e 64 69 61 6c 6f 67 | 61 63 63 65 70 74 3d 22 |ondialog|accept="|
|00003340| 73 61 76 65 50 72 65 66 | 73 28 29 3b 22 0a 20 20 |savePref|s();". |
|00003350| 20 20 20 20 20 20 70 65 | 72 73 69 73 74 3d 22 73 | pe|rsist="s|
|00003360| 63 72 65 65 6e 58 20 73 | 63 72 65 65 6e 59 22 0a |creenX s|creenY".|
|00003370| 20 20 20 20 20 20 20 20 | 74 69 74 6c 65 3d 22 26 | |title="&|
|00003380| 70 61 6e 65 2e 74 69 74 | 6c 65 3b 22 3e 0a 0a 20 |pane.tit|le;">.. |
|00003390| 20 3c 73 63 72 69 70 74 | 20 74 79 70 65 3d 22 61 | <script| type="a|
|000033a0| 70 70 6c 69 63 61 74 69 | 6f 6e 2f 78 2d 6a 61 76 |pplicati|on/x-jav|
|000033b0| 61 73 63 72 69 70 74 22 | 3e 0a 0a 20 20 3c 21 5b |ascript"|>.. <![|
|000033c0| 43 44 41 54 41 5b 0a 20 | 20 20 20 76 61 72 20 5f |CDATA[. | var _|
|000033d0| 65 6c 65 6d 65 6e 74 49 | 44 73 20 3d 20 5b 22 77 |elementI|Ds = ["w|
|000033e0| 68 65 6e 53 74 61 72 74 | 69 6e 67 55 70 22 2c 20 |henStart|ingUp", |
|000033f0| 22 77 68 65 6e 67 6f 69 | 6e 67 4f 6e 6c 69 6e 65 |"whengoi|ngOnline|
|00003400| 73 74 61 74 65 22 2c 20 | 22 77 68 65 6e 67 6f 69 |state", |"whengoi|
|00003410| 6e 67 4f 66 66 6c 69 6e | 65 73 74 61 74 65 22 2c |ngOfflin|estate",|
|00003420| 20 22 6f 66 66 6c 69 6e | 65 43 6f 6d 70 61 63 74 | "offlin|eCompact|
|00003430| 46 6f 6c 64 65 72 22 2c | 20 22 6f 66 66 6c 69 6e |Folder",| "offlin|
|00003440| 65 43 6f 6d 70 61 63 74 | 46 6f 6c 64 65 72 4d 69 |eCompact|FolderMi|
|00003450| 6e 22 5d 3b 0a 20 20 20 | 20 0a 20 20 20 20 66 75 |n"];. | . fu|
|00003460| 6e 63 74 69 6f 6e 20 69 | 6e 69 74 28 29 0a 20 20 |nction i|nit(). |
|00003470| 20 20 7b 0a 20 20 20 20 | 20 20 76 61 72 20 70 72 | {. | var pr|
|00003480| 65 66 20 3d 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |ef = Com|ponents.|
|00003490| 63 6c 61 73 73 65 73 5b | 22 40 6d 6f 7a 69 6c 6c |classes[|"@mozill|
|000034a0| 61 2e 6f 72 67 2f 70 72 | 65 66 65 72 65 6e 63 65 |a.org/pr|eference|
|000034b0| 73 2d 73 65 72 76 69 63 | 65 3b 31 22 5d 2e 67 65 |s-servic|e;1"].ge|
|000034c0| 74 53 65 72 76 69 63 65 | 28 43 6f 6d 70 6f 6e 65 |tService|(Compone|
|000034d0| 6e 74 73 2e 69 6e 74 65 | 72 66 61 63 65 73 2e 6e |nts.inte|rfaces.n|
|000034e0| 73 49 50 72 65 66 42 72 | 61 6e 63 68 29 3b 0a 0a |sIPrefBr|anch);..|
|000034f0| 20 20 20 20 20 20 2f 2f | 20 69 6e 69 74 69 61 6c | //| initial|
|00003500| 69 7a 65 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 |ize the |default |
|00003510| 77 69 6e 64 6f 77 20 76 | 61 6c 75 65 73 2e 2e 2e |window v|alues...|
|00003520| 0a 20 20 20 20 20 20 66 | 6f 72 28 20 76 61 72 20 |. f|or( var |
|00003530| 69 20 3d 20 30 3b 20 69 | 20 3c 20 5f 65 6c 65 6d |i = 0; i| < _elem|
|00003540| 65 6e 74 49 44 73 2e 6c | 65 6e 67 74 68 3b 20 69 |entIDs.l|ength; i|
|00003550| 2b 2b 20 29 0a 20 20 20 | 20 20 20 7b 20 20 20 20 |++ ). | { |
|00003560| 20 20 20 20 0a 20 20 20 | 20 20 20 20 20 76 61 72 | . | var|
|00003570| 20 65 6c 65 6d 65 6e 74 | 49 44 20 3d 20 5f 65 6c | element|ID = _el|
|00003580| 65 6d 65 6e 74 49 44 73 | 5b 69 5d 3b 0a 20 20 20 |ementIDs|[i];. |
|00003590| 20 20 20 20 20 76 61 72 | 20 65 6c 65 6d 65 6e 74 | var| element|
|000035a0| 20 3d 20 64 6f 63 75 6d | 65 6e 74 2e 67 65 74 45 | = docum|ent.getE|
|000035b0| 6c 65 6d 65 6e 74 42 79 | 49 64 28 65 6c 65 6d 65 |lementBy|Id(eleme|
|000035c0| 6e 74 49 44 29 3b 0a 20 | 20 20 20 20 20 20 20 69 |ntID);. | i|
|000035d0| 66 20 28 21 65 6c 65 6d | 65 6e 74 29 20 62 72 65 |f (!elem|ent) bre|
|000035e0| 61 6b 3b 0a 20 20 20 20 | 20 20 20 20 76 61 72 20 |ak;. | var |
|000035f0| 65 6c 74 54 79 70 65 20 | 3d 20 65 6c 65 6d 65 6e |eltType |= elemen|
|00003600| 74 2e 6c 6f 63 61 6c 4e | 61 6d 65 3b 0a 20 20 20 |t.localN|ame;. |
|00003610| 20 20 20 20 20 69 66 20 | 28 65 6c 74 54 79 70 65 | if |(eltType|
|00003620| 20 3d 3d 20 22 72 61 64 | 69 6f 67 72 6f 75 70 22 | == "rad|iogroup"|
|00003630| 29 0a 20 20 20 20 20 20 | 20 20 20 20 65 6c 65 6d |). | elem|
|00003640| 65 6e 74 2e 73 65 6c 65 | 63 74 65 64 49 74 65 6d |ent.sele|ctedItem|
|00003650| 20 3d 20 65 6c 65 6d 65 | 6e 74 2e 67 65 74 45 6c | = eleme|nt.getEl|
|00003660| 65 6d 65 6e 74 73 42 79 | 41 74 74 72 69 62 75 74 |ementsBy|Attribut|
|00003670| 65 28 27 76 61 6c 75 65 | 27 2c 20 70 72 65 66 2e |e('value|', pref.|
|00003680| 67 65 74 49 6e 74 50 72 | 65 66 28 65 6c 65 6d 65 |getIntPr|ef(eleme|
|00003690| 6e 74 2e 67 65 74 41 74 | 74 72 69 62 75 74 65 28 |nt.getAt|tribute(|
|000036a0| 22 70 72 65 66 73 74 72 | 69 6e 67 22 29 29 29 5b |"prefstr|ing")))[|
|000036b0| 30 5d 3b 0a 20 20 20 20 | 20 20 20 20 65 6c 73 65 |0];. | else|
|000036c0| 20 69 66 20 28 65 6c 74 | 54 79 70 65 20 3d 3d 20 | if (elt|Type == |
|000036d0| 22 63 68 65 63 6b 62 6f | 78 22 29 0a 20 20 20 20 |"checkbo|x"). |
|000036e0| 20 20 20 20 20 20 65 6c | 65 6d 65 6e 74 2e 63 68 | el|ement.ch|
|000036f0| 65 63 6b 65 64 20 3d 20 | 70 72 65 66 2e 67 65 74 |ecked = |pref.get|
|00003700| 42 6f 6f 6c 50 72 65 66 | 28 65 6c 65 6d 65 6e 74 |BoolPref|(element|
|00003710| 2e 67 65 74 41 74 74 72 | 69 62 75 74 65 28 22 70 |.getAttr|ibute("p|
|00003720| 72 65 66 73 74 72 69 6e | 67 22 29 29 3b 0a 20 20 |refstrin|g"));. |
|00003730| 20 20 20 20 20 20 65 6c | 73 65 20 69 66 20 28 65 | el|se if (e|
|00003740| 6c 74 54 79 70 65 20 3d | 3d 20 22 74 65 78 74 62 |ltType =|= "textb|
|00003750| 6f 78 22 29 0a 20 20 20 | 20 20 20 20 20 20 20 65 |ox"). | e|
|00003760| 6c 65 6d 65 6e 74 2e 73 | 65 74 41 74 74 72 69 62 |lement.s|etAttrib|
|00003770| 75 74 65 28 22 76 61 6c | 75 65 22 2c 20 70 72 65 |ute("val|ue", pre|
|00003780| 66 2e 67 65 74 49 6e 74 | 50 72 65 66 28 65 6c 65 |f.getInt|Pref(ele|
|00003790| 6d 65 6e 74 2e 67 65 74 | 41 74 74 72 69 62 75 74 |ment.get|Attribut|
|000037a0| 65 28 22 70 72 65 66 73 | 74 72 69 6e 67 22 29 29 |e("prefs|tring"))|
|000037b0| 20 29 3b 0a 20 20 20 20 | 20 20 7d 0a 0a 20 20 20 | );. | }.. |
|000037c0| 20 20 20 76 61 72 20 61 | 43 68 65 63 6b 62 6f 78 | var a|Checkbox|
|000037d0| 20 3d 20 64 6f 63 75 6d | 65 6e 74 2e 67 65 74 45 | = docum|ent.getE|
|000037e0| 6c 65 6d 65 6e 74 42 79 | 49 64 28 22 6f 66 66 6c |lementBy|Id("offl|
|000037f0| 69 6e 65 43 6f 6d 70 61 | 63 74 46 6f 6c 64 65 72 |ineCompa|ctFolder|
|00003800| 22 29 3b 0a 20 20 20 20 | 20 20 65 6e 61 62 6c 65 |");. | enable|
|00003810| 46 69 65 6c 64 28 61 43 | 68 65 63 6b 62 6f 78 2c |Field(aC|heckbox,|
|00003820| 20 22 6f 66 66 6c 69 6e | 65 43 6f 6d 70 61 63 74 | "offlin|eCompact|
|00003830| 46 6f 6c 64 65 72 4d 69 | 6e 22 29 3b 0a 20 20 20 |FolderMi|n");. |
|00003840| 20 7d 0a 0a 20 20 20 20 | 66 75 6e 63 74 69 6f 6e | }.. |function|
|00003850| 20 65 6e 61 62 6c 65 46 | 69 65 6c 64 28 61 43 68 | enableF|ield(aCh|
|00003860| 65 63 6b 62 6f 78 2c 20 | 61 4e 6f 64 65 49 44 29 |eckbox, |aNodeID)|
|00003870| 20 0a 20 20 20 20 7b 20 | 0a 20 20 20 20 20 20 20 | . { |. |
|00003880| 76 61 72 20 61 46 69 65 | 6c 64 20 3d 20 64 6f 63 |var aFie|ld = doc|
|00003890| 75 6d 65 6e 74 2e 67 65 | 74 45 6c 65 6d 65 6e 74 |ument.ge|tElement|
|000038a0| 42 79 49 64 28 61 4e 6f | 64 65 49 44 29 3b 20 0a |ById(aNo|deID); .|
|000038b0| 20 20 20 20 20 20 20 69 | 66 20 28 61 43 68 65 63 | i|f (aChec|
|000038c0| 6b 62 6f 78 2e 63 68 65 | 63 6b 65 64 29 20 0a 20 |kbox.che|cked) . |
|000038d0| 20 20 20 20 20 20 20 20 | 61 46 69 65 6c 64 2e 72 | |aField.r|
|000038e0| 65 6d 6f 76 65 41 74 74 | 72 69 62 75 74 65 28 22 |emoveAtt|ribute("|
|000038f0| 64 69 73 61 62 6c 65 64 | 22 29 3b 20 0a 20 20 20 |disabled|"); . |
|00003900| 20 20 20 20 65 6c 73 65 | 20 0a 20 20 20 20 20 20 | else| . |
|00003910| 20 20 20 61 46 69 65 6c | 64 2e 73 65 74 41 74 74 | aFiel|d.setAtt|
|00003920| 72 69 62 75 74 65 28 22 | 64 69 73 61 62 6c 65 64 |ribute("|disabled|
|00003930| 22 2c 20 22 74 72 75 65 | 22 29 3b 20 0a 20 20 20 |", "true|"); . |
|00003940| 20 7d 20 0a 0a 20 20 20 | 20 66 75 6e 63 74 69 6f | } .. | functio|
|00003950| 6e 20 73 61 76 65 50 72 | 65 66 73 28 29 0a 20 20 |n savePr|efs(). |
|00003960| 20 20 7b 0a 20 20 20 20 | 20 20 76 61 72 20 70 72 | {. | var pr|
|00003970| 65 66 20 3d 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |ef = Com|ponents.|
|00003980| 63 6c 61 73 73 65 73 5b | 22 40 6d 6f 7a 69 6c 6c |classes[|"@mozill|
|00003990| 61 2e 6f 72 67 2f 70 72 | 65 66 65 72 65 6e 63 65 |a.org/pr|eference|
|000039a0| 73 2d 73 65 72 76 69 63 | 65 3b 31 22 5d 2e 67 65 |s-servic|e;1"].ge|
|000039b0| 74 53 65 72 76 69 63 65 | 28 43 6f 6d 70 6f 6e 65 |tService|(Compone|
|000039c0| 6e 74 73 2e 69 6e 74 65 | 72 66 61 63 65 73 2e 6e |nts.inte|rfaces.n|
|000039d0| 73 49 50 72 65 66 42 72 | 61 6e 63 68 29 3b 0a 0a |sIPrefBr|anch);..|
|000039e0| 20 20 20 20 20 20 66 6f | 72 28 20 76 61 72 20 69 | fo|r( var i|
|000039f0| 20 3d 20 30 3b 20 69 20 | 3c 20 5f 65 6c 65 6d 65 | = 0; i |< _eleme|
|00003a00| 6e 74 49 44 73 2e 6c 65 | 6e 67 74 68 3b 20 69 2b |ntIDs.le|ngth; i+|
|00003a10| 2b 20 29 0a 20 20 20 20 | 20 20 7b 0a 20 20 20 20 |+ ). | {. |
|00003a20| 20 20 20 20 76 61 72 20 | 65 6c 65 6d 65 6e 74 49 | var |elementI|
|00003a30| 44 20 3d 20 5f 65 6c 65 | 6d 65 6e 74 49 44 73 5b |D = _ele|mentIDs[|
|00003a40| 69 5d 3b 0a 0a 20 20 20 | 20 20 20 20 20 76 61 72 |i];.. | var|
|00003a50| 20 65 6c 65 6d 65 6e 74 | 20 3d 20 64 6f 63 75 6d | element| = docum|
|00003a60| 65 6e 74 2e 67 65 74 45 | 6c 65 6d 65 6e 74 42 79 |ent.getE|lementBy|
|00003a70| 49 64 28 65 6c 65 6d 65 | 6e 74 49 44 29 3b 0a 20 |Id(eleme|ntID);. |
|00003a80| 20 20 20 20 20 20 20 69 | 66 20 28 21 65 6c 65 6d | i|f (!elem|
|00003a90| 65 6e 74 29 20 62 72 65 | 61 6b 3b 0a 20 20 20 20 |ent) bre|ak;. |
|00003aa0| 20 20 20 20 76 61 72 20 | 65 6c 74 54 79 70 65 20 | var |eltType |
|00003ab0| 3d 20 65 6c 65 6d 65 6e | 74 2e 6c 6f 63 61 6c 4e |= elemen|t.localN|
|00003ac0| 61 6d 65 3b 0a 0a 20 20 | 20 20 20 20 20 20 69 66 |ame;.. | if|
|00003ad0| 20 28 65 6c 74 54 79 70 | 65 20 3d 3d 20 22 72 61 | (eltTyp|e == "ra|
|00003ae0| 64 69 6f 67 72 6f 75 70 | 22 29 0a 20 20 20 20 20 |diogroup|"). |
|00003af0| 20 20 20 20 20 70 72 65 | 66 2e 73 65 74 49 6e 74 | pre|f.setInt|
|00003b00| 50 72 65 66 28 65 6c 65 | 6d 65 6e 74 2e 67 65 74 |Pref(ele|ment.get|
|00003b10| 41 74 74 72 69 62 75 74 | 65 28 22 70 72 65 66 73 |Attribut|e("prefs|
|00003b20| 74 72 69 6e 67 22 29 2c | 20 70 61 72 73 65 49 6e |tring"),| parseIn|
|00003b30| 74 28 65 6c 65 6d 65 6e | 74 2e 76 61 6c 75 65 29 |t(elemen|t.value)|
|00003b40| 29 3b 0a 20 20 20 20 20 | 20 20 20 65 6c 73 65 20 |);. | else |
|00003b50| 69 66 20 28 65 6c 74 54 | 79 70 65 20 3d 3d 20 22 |if (eltT|ype == "|
|00003b60| 63 68 65 63 6b 62 6f 78 | 22 29 0a 20 20 20 20 20 |checkbox|"). |
|00003b70| 20 20 20 20 20 70 72 65 | 66 2e 73 65 74 42 6f 6f | pre|f.setBoo|
|00003b80| 6c 50 72 65 66 28 65 6c | 65 6d 65 6e 74 2e 67 65 |lPref(el|ement.ge|
|00003b90| 74 41 74 74 72 69 62 75 | 74 65 28 22 70 72 65 66 |tAttribu|te("pref|
|00003ba0| 73 74 72 69 6e 67 22 29 | 2c 20 65 6c 65 6d 65 6e |string")|, elemen|
|00003bb0| 74 2e 63 68 65 63 6b 65 | 64 29 3b 0a 20 20 20 20 |t.checke|d);. |
|00003bc0| 20 20 20 20 65 6c 73 65 | 20 69 66 20 28 65 6c 74 | else| if (elt|
|00003bd0| 54 79 70 65 20 3d 3d 20 | 22 74 65 78 74 62 6f 78 |Type == |"textbox|
|00003be0| 22 29 0a 20 20 20 20 20 | 20 20 20 20 20 70 72 65 |"). | pre|
|00003bf0| 66 2e 73 65 74 49 6e 74 | 50 72 65 66 28 65 6c 65 |f.setInt|Pref(ele|
|00003c00| 6d 65 6e 74 2e 67 65 74 | 41 74 74 72 69 62 75 74 |ment.get|Attribut|
|00003c10| 65 28 22 70 72 65 66 73 | 74 72 69 6e 67 22 29 2c |e("prefs|tring"),|
|00003c20| 20 70 61 72 73 65 49 6e | 74 28 65 6c 65 6d 65 6e | parseIn|t(elemen|
|00003c30| 74 2e 76 61 6c 75 65 29 | 20 29 3b 0a 20 20 20 20 |t.value)| );. |
|00003c40| 20 20 20 7d 0a 20 20 20 | 20 7d 0a 20 20 5d 5d 3e | }. | }. ]]>|
|00003c50| 0a 20 20 3c 2f 73 63 72 | 69 70 74 3e 0a 0a 3c 67 |. </scr|ipt>..<g|
|00003c60| 72 6f 75 70 62 6f 78 3e | 0a 20 20 3c 63 61 70 74 |roupbox>|. <capt|
|00003c70| 69 6f 6e 20 6c 61 62 65 | 6c 3d 22 26 72 48 65 61 |ion labe|l="&rHea|
|00003c80| 64 65 72 3b 22 2f 3e 0a | 0a 20 20 3c 6c 61 62 65 |der;"/>.|. <labe|
|00003c90| 6c 20 76 61 6c 75 65 3d | 22 26 74 65 78 74 53 74 |l value=|"&textSt|
|00003ca0| 61 72 74 55 70 3b 22 2f | 3e 0a 20 20 20 20 3c 72 |artUp;"/|>. <r|
|00003cb0| 61 64 69 6f 67 72 6f 75 | 70 20 69 64 3d 22 77 68 |adiogrou|p id="wh|
|00003cc0| 65 6e 53 74 61 72 74 69 | 6e 67 55 70 22 20 63 6c |enStarti|ngUp" cl|
|00003cd0| 61 73 73 3d 22 69 6e 64 | 65 6e 74 22 0a 20 20 20 |ass="ind|ent". |
|00003ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 72 65 | | pre|
|00003cf0| 66 73 74 72 69 6e 67 3d | 22 6f 66 66 6c 69 6e 65 |fstring=|"offline|
|00003d00| 2e 73 74 61 72 74 75 70 | 5f 73 74 61 74 65 22 3e |.startup|_state">|
|00003d10| 0a 20 20 20 20 3c 72 61 | 64 69 6f 20 76 61 6c 75 |. <ra|dio valu|
|00003d20| 65 3d 22 30 22 20 6c 61 | 62 65 6c 3d 22 26 72 61 |e="0" la|bel="&ra|
|00003d30| 64 69 6f 52 65 6d 65 6d | 62 65 72 50 72 65 76 53 |dioRemem|berPrevS|
|00003d40| 74 61 74 65 3b 22 20 61 | 63 63 65 73 73 6b 65 79 |tate;" a|ccesskey|
|00003d50| 3d 22 26 72 61 64 69 6f | 52 65 6d 65 6d 62 65 72 |="&radio|Remember|
|00003d60| 50 72 65 76 53 74 61 74 | 65 2e 61 63 63 65 73 73 |PrevStat|e.access|
|00003d70| 6b 65 79 3b 22 2f 3e 0a | 20 20 20 20 3c 72 61 64 |key;"/>.| <rad|
|00003d80| 69 6f 20 76 61 6c 75 65 | 3d 22 31 22 20 6c 61 62 |io value|="1" lab|
|00003d90| 65 6c 3d 22 26 72 61 64 | 69 6f 41 73 6b 4d 65 3b |el="&rad|ioAskMe;|
|00003da0| 22 20 61 63 63 65 73 73 | 6b 65 79 3d 22 26 72 61 |" access|key="&ra|
|00003db0| 64 69 6f 41 73 6b 4d 65 | 2e 61 63 63 65 73 73 6b |dioAskMe|.accessk|
|00003dc0| 65 79 3b 22 2f 3e 0a 20 | 20 20 20 3c 72 61 64 69 |ey;"/>. | <radi|
|00003dd0| 6f 20 76 61 6c 75 65 3d | 22 32 22 20 6c 61 62 65 |o value=|"2" labe|
|00003de0| 6c 3d 22 26 72 61 64 69 | 6f 41 6c 77 61 79 73 4f |l="&radi|oAlwaysO|
|00003df0| 6e 6c 69 6e 65 3b 22 20 | 61 63 63 65 73 73 6b 65 |nline;" |accesske|
|00003e00| 79 3d 22 26 72 61 64 69 | 6f 41 6c 77 61 79 73 4f |y="&radi|oAlwaysO|
|00003e10| 6e 6c 69 6e 65 2e 61 63 | 63 65 73 73 6b 65 79 3b |nline.ac|cesskey;|
|00003e20| 22 2f 3e 0a 20 20 20 20 | 3c 2f 72 61 64 69 6f 67 |"/>. |</radiog|
|00003e30| 72 6f 75 70 3e 0a 0a 20 | 20 3c 73 65 70 61 72 61 |roup>.. | <separa|
|00003e40| 74 6f 72 2f 3e 0a 0a 20 | 20 3c 6c 61 62 65 6c 20 |tor/>.. | <label |
|00003e50| 76 61 6c 75 65 3d 22 26 | 74 65 78 74 47 6f 69 6e |value="&|textGoin|
|00003e60| 67 4f 6e 6c 69 6e 65 3b | 22 2f 3e 0a 20 20 20 20 |gOnline;|"/>. |
|00003e70| 3c 72 61 64 69 6f 67 72 | 6f 75 70 20 69 64 3d 22 |<radiogr|oup id="|
|00003e80| 77 68 65 6e 67 6f 69 6e | 67 4f 6e 6c 69 6e 65 73 |whengoin|gOnlines|
|00003e90| 74 61 74 65 22 0a 20 20 | 20 20 20 20 20 20 20 20 |tate". | |
|00003ea0| 20 20 20 20 20 20 6f 72 | 69 65 6e 74 3d 22 68 6f | or|ient="ho|
|00003eb0| 72 69 7a 6f 6e 74 61 6c | 22 20 63 6c 61 73 73 3d |rizontal|" class=|
|00003ec0| 22 69 6e 64 65 6e 74 22 | 0a 20 20 20 20 20 20 20 |"indent"|. |
|00003ed0| 20 20 20 20 20 20 20 20 | 20 70 72 65 66 73 74 72 | | prefstr|
|00003ee0| 69 6e 67 3d 22 6f 66 66 | 6c 69 6e 65 2e 73 65 6e |ing="off|line.sen|
|00003ef0| 64 2e 75 6e 73 65 6e 74 | 5f 6d 65 73 73 61 67 65 |d.unsent|_message|
|00003f00| 73 22 3e 0a 20 20 20 20 | 3c 72 61 64 69 6f 20 76 |s">. |<radio v|
|00003f10| 61 6c 75 65 3d 22 31 22 | 20 6c 61 62 65 6c 3d 22 |alue="1"| label="|
|00003f20| 26 72 61 64 69 6f 41 75 | 74 6f 53 65 6e 64 3b 22 |&radioAu|toSend;"|
|00003f30| 20 20 61 63 63 65 73 73 | 6b 65 79 3d 22 26 72 61 | access|key="&ra|
|00003f40| 64 69 6f 41 75 74 6f 53 | 65 6e 64 2e 61 63 63 65 |dioAutoS|end.acce|
|00003f50| 73 73 6b 65 79 3b 22 2f | 3e 0a 20 20 20 20 3c 72 |sskey;"/|>. <r|
|00003f60| 61 64 69 6f 20 76 61 6c | 75 65 3d 22 32 22 20 6c |adio val|ue="2" l|
|00003f70| 61 62 65 6c 3d 22 26 72 | 61 64 69 6f 4e 6f 74 53 |abel="&r|adioNotS|
|00003f80| 65 6e 64 3b 22 20 20 20 | 61 63 63 65 73 73 6b 65 |end;" |accesske|
|00003f90| 79 3d 22 26 72 61 64 69 | 6f 4e 6f 74 53 65 6e 64 |y="&radi|oNotSend|
|00003fa0| 2e 61 63 63 65 73 73 6b | 65 79 3b 22 2f 3e 0a 20 |.accessk|ey;"/>. |
|00003fb0| 20 20 20 3c 72 61 64 69 | 6f 20 76 61 6c 75 65 3d | <radi|o value=|
|00003fc0| 22 30 22 20 6c 61 62 65 | 6c 3d 22 26 72 61 64 69 |"0" labe|l="&radi|
|00003fd0| 6f 41 73 6b 55 6e 73 65 | 6e 74 3b 22 20 61 63 63 |oAskUnse|nt;" acc|
|00003fe0| 65 73 73 6b 65 79 3d 22 | 26 72 61 64 69 6f 41 73 |esskey="|&radioAs|
|00003ff0| 6b 55 6e 73 65 6e 74 2e | 61 63 63 65 73 73 6b 65 |kUnsent.|accesske|
|00004000| 79 3b 22 2f 3e 0a 20 20 | 20 20 3c 2f 72 61 64 69 |y;"/>. | </radi|
|00004010| 6f 67 72 6f 75 70 3e 0a | 0a 20 20 3c 73 65 70 61 |ogroup>.|. <sepa|
|00004020| 72 61 74 6f 72 2f 3e 0a | 0a 20 20 3c 6c 61 62 65 |rator/>.|. <labe|
|00004030| 6c 20 76 61 6c 75 65 3d | 22 26 74 65 78 74 47 6f |l value=|"&textGo|
|00004040| 69 6e 67 4f 66 66 6c 69 | 6e 65 3b 22 2f 3e 0a 20 |ingOffli|ne;"/>. |
|00004050| 20 20 20 20 3c 72 61 64 | 69 6f 67 72 6f 75 70 20 | <rad|iogroup |
|00004060| 69 64 3d 22 77 68 65 6e | 67 6f 69 6e 67 4f 66 66 |id="when|goingOff|
|00004070| 6c 69 6e 65 73 74 61 74 | 65 22 0a 20 20 20 20 20 |linestat|e". |
|00004080| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 72 69 65 | | orie|
|00004090| 6e 74 3d 22 68 6f 72 69 | 7a 6f 6e 74 61 6c 22 20 |nt="hori|zontal" |
|000040a0| 63 6c 61 73 73 3d 22 69 | 6e 64 65 6e 74 22 0a 20 |class="i|ndent". |
|000040b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040c0| 70 72 65 66 73 74 72 69 | 6e 67 3d 22 6f 66 66 6c |prefstri|ng="offl|
|000040d0| 69 6e 65 2e 64 6f 77 6e | 6c 6f 61 64 2e 64 6f 77 |ine.down|load.dow|
|000040e0| 6e 6c 6f 61 64 5f 6d 65 | 73 73 61 67 65 73 22 3e |nload_me|ssages">|
|000040f0| 0a 20 20 20 20 3c 72 61 | 64 69 6f 20 76 61 6c 75 |. <ra|dio valu|
|00004100| 65 3d 22 31 22 20 6c 61 | 62 65 6c 3d 22 26 72 61 |e="1" la|bel="&ra|
|00004110| 64 69 6f 41 75 74 6f 44 | 6f 77 6e 6c 6f 61 64 3b |dioAutoD|ownload;|
|00004120| 22 20 61 63 63 65 73 73 | 6b 65 79 3d 22 26 72 61 |" access|key="&ra|
|00004130| 64 69 6f 41 75 74 6f 44 | 6f 77 6e 6c 6f 61 64 2e |dioAutoD|ownload.|
|00004140| 61 63 63 65 73 73 6b 65 | 79 3b 22 2f 3e 0a 20 20 |accesske|y;"/>. |
|00004150| 20 20 3c 72 61 64 69 6f | 20 76 61 6c 75 65 3d 22 | <radio| value="|
|00004160| 32 22 20 6c 61 62 65 6c | 3d 22 26 72 61 64 69 6f |2" label|="&radio|
|00004170| 4e 6f 74 44 6f 77 6e 6c | 6f 61 64 3b 22 20 20 61 |NotDownl|oad;" a|
|00004180| 63 63 65 73 73 6b 65 79 | 3d 22 26 72 61 64 69 6f |ccesskey|="&radio|
|00004190| 4e 6f 74 44 6f 77 6e 6c | 6f 61 64 2e 61 63 63 65 |NotDownl|oad.acce|
|000041a0| 73 73 6b 65 79 3b 22 2f | 3e 0a 20 20 20 20 3c 72 |sskey;"/|>. <r|
|000041b0| 61 64 69 6f 20 76 61 6c | 75 65 3d 22 30 22 20 6c |adio val|ue="0" l|
|000041c0| 61 62 65 6c 3d 22 26 72 | 61 64 69 6f 41 73 6b 44 |abel="&r|adioAskD|
|000041d0| 6f 77 6e 6c 6f 61 64 3b | 22 20 20 61 63 63 65 73 |ownload;|" acces|
|000041e0| 73 6b 65 79 3d 22 26 72 | 61 64 69 6f 41 73 6b 44 |skey="&r|adioAskD|
|000041f0| 6f 77 6e 6c 6f 61 64 2e | 61 63 63 65 73 73 6b 65 |ownload.|accesske|
|00004200| 79 3b 22 2f 3e 0a 20 20 | 20 20 3c 2f 72 61 64 69 |y;"/>. | </radi|
|00004210| 6f 67 72 6f 75 70 3e 0a | 0a 3c 2f 67 72 6f 75 70 |ogroup>.|.</group|
|00004220| 62 6f 78 3e 0a 0a 3c 67 | 72 6f 75 70 62 6f 78 3e |box>..<g|roupbox>|
|00004230| 0a 20 20 20 20 3c 63 61 | 70 74 69 6f 6e 20 6c 61 |. <ca|ption la|
|00004240| 62 65 6c 3d 22 26 44 69 | 73 6b 73 70 61 63 65 3b |bel="&Di|skspace;|
|00004250| 22 2f 3e 09 20 20 20 20 | 0a 20 20 20 20 3c 68 62 |"/>. |. <hb|
|00004260| 6f 78 20 61 6c 69 67 6e | 3d 22 63 65 6e 74 65 72 |ox align|="center|
|00004270| 22 3e 0a 20 20 20 20 20 | 20 20 20 3c 63 68 65 63 |">. | <chec|
|00004280| 6b 62 6f 78 20 69 64 3d | 22 6f 66 66 6c 69 6e 65 |kbox id=|"offline|
|00004290| 43 6f 6d 70 61 63 74 46 | 6f 6c 64 65 72 22 20 6c |CompactF|older" l|
|000042a0| 61 62 65 6c 3d 22 26 6f | 66 66 6c 69 6e 65 43 6f |abel="&o|fflineCo|
|000042b0| 6d 70 61 63 74 2e 6c 61 | 62 65 6c 3b 22 20 61 63 |mpact.la|bel;" ac|
|000042c0| 63 65 73 73 6b 65 79 3d | 22 26 6f 66 66 6c 69 6e |cesskey=|"&offlin|
|000042d0| 65 43 6f 6d 70 61 63 74 | 2e 61 63 63 65 73 73 6b |eCompact|.accessk|
|000042e0| 65 79 3b 22 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ey;". | |
|000042f0| 20 70 72 65 66 73 74 72 | 69 6e 67 3d 22 6d 61 69 | prefstr|ing="mai|
|00004300| 6c 2e 70 72 6f 6d 70 74 | 5f 70 75 72 67 65 5f 74 |l.prompt|_purge_t|
|00004310| 68 72 65 73 68 68 6f 6c | 64 22 0a 20 20 20 20 20 |hreshhol|d". |
|00004320| 20 20 20 20 20 20 20 6f | 6e 63 6f 6d 6d 61 6e 64 | o|ncommand|
|00004330| 3d 22 65 6e 61 62 6c 65 | 46 69 65 6c 64 28 74 68 |="enable|Field(th|
|00004340| 69 73 2c 27 6f 66 66 6c | 69 6e 65 43 6f 6d 70 61 |is,'offl|ineCompa|
|00004350| 63 74 46 6f 6c 64 65 72 | 4d 69 6e 27 29 3b 22 2f |ctFolder|Min');"/|
|00004360| 3e 20 0a 20 20 20 20 20 | 20 20 20 3c 74 65 78 74 |> . | <text|
|00004370| 62 6f 78 20 69 64 3d 22 | 6f 66 66 6c 69 6e 65 43 |box id="|offlineC|
|00004380| 6f 6d 70 61 63 74 46 6f | 6c 64 65 72 4d 69 6e 22 |ompactFo|lderMin"|
|00004390| 20 73 69 7a 65 3d 22 35 | 22 20 76 61 6c 75 65 3d | size="5|" value=|
|000043a0| 22 31 30 30 22 0a 20 20 | 20 20 20 20 20 20 20 20 |"100". | |
|000043b0| 20 20 70 72 65 66 74 79 | 70 65 3d 22 69 6e 74 22 | prefty|pe="int"|
|000043c0| 20 70 72 65 66 73 74 72 | 69 6e 67 3d 22 6d 61 69 | prefstr|ing="mai|
|000043d0| 6c 2e 70 75 72 67 65 5f | 74 68 72 65 73 68 68 6f |l.purge_|threshho|
|000043e0| 6c 64 22 2f 3e 0a 20 20 | 20 20 20 20 20 20 3c 6c |ld"/>. | <l|
|000043f0| 61 62 65 6c 20 76 61 6c | 75 65 3d 22 26 6b 62 2e |abel val|ue="&kb.|
|00004400| 6c 61 62 65 6c 3b 22 2f | 3e 0a 20 20 20 20 3c 2f |label;"/|>. </|
|00004410| 68 62 6f 78 3e 0a 3c 2f | 67 72 6f 75 70 62 6f 78 |hbox>.</|groupbox|
|00004420| 3e 0a 0a 3c 2f 64 69 61 | 6c 6f 67 3e 0a 50 4b 01 |>..</dia|log>.PK.|
|00004430| 02 17 03 0a 00 00 00 00 | 00 95 ac 16 31 d9 eb 51 |........|....1..Q|
|00004440| 0e 64 0a 00 00 64 0a 00 | 00 2f 00 0d 00 00 00 00 |.d...d..|./......|
|00004450| 00 00 00 00 00 b6 81 00 | 00 00 00 63 6f 6e 74 65 |........|...conte|
|00004460| 6e 74 2f 6d 65 73 73 65 | 6e 67 65 72 2d 6f 66 66 |nt/messe|nger-off|
|00004470| 6c 69 6e 65 2f 6d 73 67 | 4f 66 66 6c 69 6e 65 4f |line/msg|OfflineO|
|00004480| 76 65 72 6c 61 79 2e 78 | 75 6c 55 54 05 00 03 59 |verlay.x|ulUT...Y|
|00004490| 74 29 41 55 78 00 00 50 | 4b 01 02 17 03 0a 00 00 |t)AUx..P|K.......|
|000044a0| 00 00 00 d6 a5 c4 2e 54 | 01 04 dc b9 1f 00 00 b9 |.......T|........|
|000044b0| 1f 00 00 29 00 0d 00 00 | 00 00 00 00 00 00 00 b6 |...)....|........|
|000044c0| 81 c6 0a 00 00 63 6f 6e | 74 65 6e 74 2f 6d 65 73 |.....con|tent/mes|
|000044d0| 73 65 6e 67 65 72 2d 6f | 66 66 6c 69 6e 65 2f 6d |senger-o|ffline/m|
|000044e0| 61 69 6c 2d 6f 66 66 6c | 69 6e 65 2e 6a 73 55 54 |ail-offl|ine.jsUT|
|000044f0| 05 00 03 23 bd de 3e 55 | 78 00 00 50 4b 01 02 17 |...#..>U|x..PK...|
|00004500| 03 0a 00 00 00 00 00 95 | ac 16 31 9a 3d d3 fa a8 |........|..1.=...|
|00004510| 05 00 00 a8 05 00 00 26 | 00 0d 00 00 00 00 00 00 |.......&|........|
|00004520| 00 00 00 b6 81 db 2a 00 | 00 63 6f 6e 74 65 6e 74 |......*.|.content|
|00004530| 2f 6d 65 73 73 65 6e 67 | 65 72 2d 6f 66 66 6c 69 |/messeng|er-offli|
|00004540| 6e 65 2f 63 6f 6e 74 65 | 6e 74 73 2e 72 64 66 55 |ne/conte|nts.rdfU|
|00004550| 54 05 00 03 59 74 29 41 | 55 78 00 00 50 4b 01 02 |T...Yt)A|Ux..PK..|
|00004560| 17 03 0a 00 00 00 00 00 | 35 52 0b 31 97 b9 8d c1 |........|5R.1....|
|00004570| 36 12 00 00 36 12 00 00 | 2a 00 0d 00 00 00 00 00 |6...6...|*.......|
|00004580| 00 00 00 00 b6 81 dc 30 | 00 00 63 6f 6e 74 65 6e |.......0|..conten|
|00004590| 74 2f 6d 65 73 73 65 6e | 67 65 72 2d 6f 66 66 6c |t/messen|ger-offl|
|000045a0| 69 6e 65 2f 70 72 65 66 | 2d 6f 66 66 6c 69 6e 65 |ine/pref|-offline|
|000045b0| 2e 78 75 6c 55 54 05 00 | 03 b5 54 1a 41 55 78 00 |.xulUT..|..T.AUx.|
|000045c0| 00 50 4b 05 06 00 00 00 | 00 04 00 04 00 94 01 00 |.PK.....|........|
|000045d0| 00 6f 43 00 00 00 00 50 | 4b 03 04 0a 00 00 00 00 |.oC....P|K.......|
|000045e0| 00 33 3c 86 31 d8 b9 c1 | 4d 6e 0a 00 00 6e 0a 00 |.3<.1...|Mn...n..|
|000045f0| 00 0a 00 15 00 69 6e 73 | 74 61 6c 6c 2e 6a 73 55 |.....ins|tall.jsU|
|00004600| 54 09 00 03 d2 7b b4 41 | d2 7b b4 41 55 78 04 00 |T....{.A|.{.AUx..|
|00004610| eb 03 01 02 2f 2f 20 74 | 68 69 73 20 66 75 6e 63 |....// t|his func|
|00004620| 74 69 6f 6e 20 76 65 72 | 69 66 69 65 73 20 64 69 |tion ver|ifies di|
|00004630| 73 6b 20 73 70 61 63 65 | 20 69 6e 20 6b 69 6c 6f |sk space| in kilo|
|00004640| 62 79 74 65 73 0a 66 75 | 6e 63 74 69 6f 6e 20 76 |bytes.fu|nction v|
|00004650| 65 72 69 66 79 44 69 73 | 6b 53 70 61 63 65 28 64 |erifyDis|kSpace(d|
|00004660| 69 72 50 61 74 68 2c 20 | 73 70 61 63 65 52 65 71 |irPath, |spaceReq|
|00004670| 75 69 72 65 64 29 0a 7b | 0a 20 20 76 61 72 20 73 |uired).{|. var s|
|00004680| 70 61 63 65 41 76 61 69 | 6c 61 62 6c 65 3b 0a 0a |paceAvai|lable;..|
|00004690| 20 20 2f 2f 20 47 65 74 | 20 74 68 65 20 61 76 61 | // Get| the ava|
|000046a0| 69 6c 61 62 6c 65 20 64 | 69 73 6b 20 73 70 61 63 |ilable d|isk spac|
|000046b0| 65 20 6f 6e 20 74 68 65 | 20 67 69 76 65 6e 20 70 |e on the| given p|
|000046c0| 61 74 68 0a 20 20 73 70 | 61 63 65 41 76 61 69 6c |ath. sp|aceAvail|
|000046d0| 61 62 6c 65 20 3d 20 66 | 69 6c 65 47 65 74 44 69 |able = f|ileGetDi|
|000046e0| 73 6b 53 70 61 63 65 41 | 76 61 69 6c 61 62 6c 65 |skSpaceA|vailable|
|000046f0| 28 64 69 72 50 61 74 68 | 29 3b 0a 0a 20 20 2f 2f |(dirPath|);.. //|
|00004700| 20 43 6f 6e 76 65 72 74 | 20 74 68 65 20 61 76 61 | Convert| the ava|
|00004710| 69 6c 61 62 6c 65 20 64 | 69 73 6b 20 73 70 61 63 |ilable d|isk spac|
|00004720| 65 20 69 6e 74 6f 20 6b | 69 6c 6f 62 79 74 65 73 |e into k|ilobytes|
|00004730| 0a 20 20 73 70 61 63 65 | 41 76 61 69 6c 61 62 6c |. space|Availabl|
|00004740| 65 20 3d 20 70 61 72 73 | 65 49 6e 74 28 73 70 61 |e = pars|eInt(spa|
|00004750| 63 65 41 76 61 69 6c 61 | 62 6c 65 20 2f 20 31 30 |ceAvaila|ble / 10|
|00004760| 32 34 29 3b 0a 0a 20 20 | 2f 2f 20 64 6f 20 74 68 |24);.. |// do th|
|00004770| 65 20 76 65 72 69 66 69 | 63 61 74 69 6f 6e 0a 20 |e verifi|cation. |
|00004780| 20 69 66 28 73 70 61 63 | 65 41 76 61 69 6c 61 62 | if(spac|eAvailab|
|00004790| 6c 65 20 3c 20 73 70 61 | 63 65 52 65 71 75 69 72 |le < spa|ceRequir|
|000047a0| 65 64 29 0a 20 20 7b 0a | 20 20 20 20 6c 6f 67 43 |ed). {.| logC|
|000047b0| 6f 6d 6d 65 6e 74 28 22 | 49 6e 73 75 66 66 69 63 |omment("|Insuffic|
|000047c0| 69 65 6e 74 20 64 69 73 | 6b 20 73 70 61 63 65 3a |ient dis|k space:|
|000047d0| 20 22 20 2b 20 64 69 72 | 50 61 74 68 29 3b 0a 20 | " + dir|Path);. |
|000047e0| 20 20 20 6c 6f 67 43 6f | 6d 6d 65 6e 74 28 22 20 | logCo|mment(" |
|000047f0| 20 72 65 71 75 69 72 65 | 64 20 3a 20 22 20 2b 20 | require|d : " + |
|00004800| 73 70 61 63 65 52 65 71 | 75 69 72 65 64 20 2b 20 |spaceReq|uired + |
|00004810| 22 20 4b 22 29 3b 0a 20 | 20 20 20 6c 6f 67 43 6f |" K");. | logCo|
|00004820| 6d 6d 65 6e 74 28 22 20 | 20 61 76 61 69 6c 61 62 |mment(" | availab|
|00004830| 6c 65 3a 20 22 20 2b 20 | 73 70 61 63 65 41 76 61 |le: " + |spaceAva|
|00004840| 69 6c 61 62 6c 65 20 2b | 20 22 20 4b 22 29 3b 0a |ilable +| " K");.|
|00004850| 20 20 20 20 72 65 74 75 | 72 6e 28 66 61 6c 73 65 | retu|rn(false|
|00004860| 29 3b 0a 20 20 7d 0a 0a | 20 20 72 65 74 75 72 6e |);. }..| return|
|00004870| 28 74 72 75 65 29 3b 0a | 7d 0a 0a 2f 2f 20 74 68 |(true);.|}..// th|
|00004880| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 64 65 6c 65 |is funct|ion dele|
|00004890| 74 65 73 20 61 20 66 69 | 6c 65 20 69 66 20 69 74 |tes a fi|le if it|
|000048a0| 20 65 78 69 73 74 73 0a | 66 75 6e 63 74 69 6f 6e | exists.|function|
|000048b0| 20 64 65 6c 65 74 65 54 | 68 69 73 46 69 6c 65 28 | deleteT|hisFile(|
|000048c0| 64 69 72 4b 65 79 2c 20 | 66 69 6c 65 29 0a 7b 0a |dirKey, |file).{.|
|000048d0| 20 20 76 61 72 20 66 46 | 69 6c 65 54 6f 44 65 6c | var fF|ileToDel|
|000048e0| 65 74 65 3b 0a 0a 20 20 | 66 46 69 6c 65 54 6f 44 |ete;.. |fFileToD|
|000048f0| 65 6c 65 74 65 20 3d 20 | 67 65 74 46 6f 6c 64 65 |elete = |getFolde|
|00004900| 72 28 64 69 72 4b 65 79 | 2c 20 66 69 6c 65 29 3b |r(dirKey|, file);|
|00004910| 0a 20 20 6c 6f 67 43 6f | 6d 6d 65 6e 74 28 22 46 |. logCo|mment("F|
|00004920| 69 6c 65 20 74 6f 20 64 | 65 6c 65 74 65 3a 20 22 |ile to d|elete: "|
|00004930| 20 2b 20 66 46 69 6c 65 | 54 6f 44 65 6c 65 74 65 | + fFile|ToDelete|
|00004940| 29 3b 0a 20 20 69 66 28 | 46 69 6c 65 2e 69 73 46 |);. if(|File.isF|
|00004950| 69 6c 65 28 66 46 69 6c | 65 54 6f 44 65 6c 65 74 |ile(fFil|eToDelet|
|00004960| 65 29 29 0a 20 20 7b 0a | 20 20 20 20 46 69 6c 65 |e)). {.| File|
|00004970| 2e 72 65 6d 6f 76 65 28 | 66 46 69 6c 65 54 6f 44 |.remove(|fFileToD|
|00004980| 65 6c 65 74 65 29 3b 0a | 20 20 20 20 72 65 74 75 |elete);.| retu|
|00004990| 72 6e 28 74 72 75 65 29 | 3b 0a 20 20 7d 0a 20 20 |rn(true)|;. }. |
|000049a0| 65 6c 73 65 0a 20 20 20 | 20 72 65 74 75 72 6e 28 |else. | return(|
|000049b0| 66 61 6c 73 65 29 3b 0a | 7d 0a 0a 2f 2f 20 74 68 |false);.|}..// th|
|000049c0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 64 65 6c 65 |is funct|ion dele|
|000049d0| 74 65 73 20 61 20 66 6f | 6c 64 65 72 20 69 66 20 |tes a fo|lder if |
|000049e0| 69 74 20 65 78 69 73 74 | 73 0a 66 75 6e 63 74 69 |it exist|s.functi|
|000049f0| 6f 6e 20 64 65 6c 65 74 | 65 54 68 69 73 46 6f 6c |on delet|eThisFol|
|00004a00| 64 65 72 28 64 69 72 4b | 65 79 2c 20 66 6f 6c 64 |der(dirK|ey, fold|
|00004a10| 65 72 2c 20 72 65 63 75 | 72 73 69 76 65 44 65 6c |er, recu|rsiveDel|
|00004a20| 65 74 65 29 0a 7b 0a 20 | 20 76 61 72 20 66 54 6f |ete).{. | var fTo|
|00004a30| 44 65 6c 65 74 65 3b 0a | 0a 20 20 69 66 28 74 79 |Delete;.|. if(ty|
|00004a40| 70 65 6f 66 20 72 65 63 | 75 72 73 69 76 65 44 65 |peof rec|ursiveDe|
|00004a50| 6c 65 74 65 20 3d 3d 20 | 22 75 6e 64 65 66 69 6e |lete == |"undefin|
|00004a60| 65 64 22 29 0a 20 20 20 | 20 72 65 63 75 72 73 69 |ed"). | recursi|
|00004a70| 76 65 44 65 6c 65 74 65 | 20 3d 20 74 72 75 65 3b |veDelete| = true;|
|00004a80| 0a 0a 20 20 66 54 6f 44 | 65 6c 65 74 65 20 3d 20 |.. fToD|elete = |
|00004a90| 67 65 74 46 6f 6c 64 65 | 72 28 64 69 72 4b 65 79 |getFolde|r(dirKey|
|00004aa0| 2c 20 66 6f 6c 64 65 72 | 29 3b 0a 20 20 6c 6f 67 |, folder|);. log|
|00004ab0| 43 6f 6d 6d 65 6e 74 28 | 22 66 6f 6c 64 65 72 20 |Comment(|"folder |
|00004ac0| 74 6f 20 64 65 6c 65 74 | 65 3a 20 22 20 2b 20 66 |to delet|e: " + f|
|00004ad0| 54 6f 44 65 6c 65 74 65 | 29 3b 0a 20 20 69 66 28 |ToDelete|);. if(|
|00004ae0| 46 69 6c 65 2e 69 73 44 | 69 72 65 63 74 6f 72 79 |File.isD|irectory|
|00004af0| 28 66 54 6f 44 65 6c 65 | 74 65 29 29 0a 20 20 7b |(fToDele|te)). {|
|00004b00| 0a 20 20 20 20 46 69 6c | 65 2e 64 69 72 52 65 6d |. Fil|e.dirRem|
|00004b10| 6f 76 65 28 66 54 6f 44 | 65 6c 65 74 65 2c 20 72 |ove(fToD|elete, r|
|00004b20| 65 63 75 72 73 69 76 65 | 44 65 6c 65 74 65 29 3b |ecursive|Delete);|
|00004b30| 0a 20 20 20 20 72 65 74 | 75 72 6e 28 74 72 75 65 |. ret|urn(true|
|00004b40| 29 3b 0a 20 20 7d 0a 20 | 20 65 6c 73 65 0a 20 20 |);. }. | else. |
|00004b50| 20 20 72 65 74 75 72 6e | 28 66 61 6c 73 65 29 3b | return|(false);|
|00004b60| 0a 7d 0a 0a 2f 2f 20 4f | 53 20 74 79 70 65 20 64 |.}..// O|S type d|
|00004b70| 65 74 65 63 74 69 6f 6e | 0a 2f 2f 20 77 68 69 63 |etection|.// whic|
|00004b80| 68 20 70 6c 61 74 66 6f | 72 6d 3f 0a 66 75 6e 63 |h platfo|rm?.func|
|00004b90| 74 69 6f 6e 20 67 65 74 | 50 6c 61 74 66 6f 72 6d |tion get|Platform|
|00004ba0| 28 29 0a 7b 0a 20 20 76 | 61 72 20 70 6c 61 74 66 |().{. v|ar platf|
|00004bb0| 6f 72 6d 53 74 72 3b 0a | 20 20 76 61 72 20 70 6c |ormStr;.| var pl|
|00004bc0| 61 74 66 6f 72 6d 4e 6f | 64 65 3b 0a 0a 20 20 69 |atformNo|de;.. i|
|00004bd0| 66 28 27 70 6c 61 74 66 | 6f 72 6d 27 20 69 6e 20 |f('platf|orm' in |
|00004be0| 49 6e 73 74 61 6c 6c 29 | 0a 20 20 7b 0a 20 20 20 |Install)|. {. |
|00004bf0| 20 70 6c 61 74 66 6f 72 | 6d 53 74 72 20 3d 20 6e | platfor|mStr = n|
|00004c00| 65 77 20 53 74 72 69 6e | 67 28 49 6e 73 74 61 6c |ew Strin|g(Instal|
|00004c10| 6c 2e 70 6c 61 74 66 6f | 72 6d 29 3b 0a 0a 20 20 |l.platfo|rm);.. |
|00004c20| 20 20 69 66 20 28 21 70 | 6c 61 74 66 6f 72 6d 53 | if (!p|latformS|
|00004c30| 74 72 2e 73 65 61 72 63 | 68 28 2f 5e 4d 61 63 69 |tr.searc|h(/^Maci|
|00004c40| 6e 74 6f 73 68 2f 29 29 | 0a 20 20 20 20 20 20 70 |ntosh/))|. p|
|00004c50| 6c 61 74 66 6f 72 6d 4e | 6f 64 65 20 3d 20 27 6d |latformN|ode = 'm|
|00004c60| 61 63 27 3b 0a 20 20 20 | 20 65 6c 73 65 20 69 66 |ac';. | else if|
|00004c70| 20 28 21 70 6c 61 74 66 | 6f 72 6d 53 74 72 2e 73 | (!platf|ormStr.s|
|00004c80| 65 61 72 63 68 28 2f 5e | 57 69 6e 2f 29 29 0a 20 |earch(/^|Win/)). |
|00004c90| 20 20 20 20 20 70 6c 61 | 74 66 6f 72 6d 4e 6f 64 | pla|tformNod|
|00004ca0| 65 20 3d 20 27 77 69 6e | 27 3b 0a 20 20 20 20 65 |e = 'win|';. e|
|00004cb0| 6c 73 65 20 69 66 20 28 | 21 70 6c 61 74 66 6f 72 |lse if (|!platfor|
|00004cc0| 6d 53 74 72 2e 73 65 61 | 72 63 68 28 2f 5e 4f 53 |mStr.sea|rch(/^OS|
|00004cd0| 5c 2f 32 2f 29 29 0a 20 | 20 20 20 20 20 70 6c 61 |\/2/)). | pla|
|00004ce0| 74 66 6f 72 6d 4e 6f 64 | 65 20 3d 20 27 77 69 6e |tformNod|e = 'win|
|00004cf0| 27 3b 0a 20 20 20 20 65 | 6c 73 65 0a 20 20 20 20 |';. e|lse. |
|00004d00| 20 20 70 6c 61 74 66 6f | 72 6d 4e 6f 64 65 20 3d | platfo|rmNode =|
|00004d10| 20 27 75 6e 69 78 27 3b | 0a 20 20 7d 0a 20 20 65 | 'unix';|. }. e|
|00004d20| 6c 73 65 0a 20 20 7b 0a | 20 20 20 20 76 61 72 20 |lse. {.| var |
|00004d30| 66 4f 53 4d 61 63 20 20 | 3d 20 67 65 74 46 6f 6c |fOSMac |= getFol|
|00004d40| 64 65 72 28 22 4d 61 63 | 20 53 79 73 74 65 6d 22 |der("Mac| System"|
|00004d50| 29 3b 0a 20 20 20 20 76 | 61 72 20 66 4f 53 57 69 |);. v|ar fOSWi|
|00004d60| 6e 20 20 3d 20 67 65 74 | 46 6f 6c 64 65 72 28 22 |n = get|Folder("|
|00004d70| 57 69 6e 20 53 79 73 74 | 65 6d 22 29 3b 0a 0a 20 |Win Syst|em");.. |
|00004d80| 20 20 20 6c 6f 67 43 6f | 6d 6d 65 6e 74 28 22 66 | logCo|mment("f|
|00004d90| 4f 53 4d 61 63 3a 20 22 | 20 20 2b 20 66 4f 53 4d |OSMac: "| + fOSM|
|00004da0| 61 63 29 3b 0a 20 20 20 | 20 6c 6f 67 43 6f 6d 6d |ac);. | logComm|
|00004db0| 65 6e 74 28 22 66 4f 53 | 57 69 6e 3a 20 22 20 20 |ent("fOS|Win: " |
|00004dc0| 2b 20 66 4f 53 57 69 6e | 29 3b 0a 0a 20 20 20 20 |+ fOSWin|);.. |
|00004dd0| 69 66 28 66 4f 53 4d 61 | 63 20 21 3d 20 6e 75 6c |if(fOSMa|c != nul|
|00004de0| 6c 29 0a 20 20 20 20 20 | 20 70 6c 61 74 66 6f 72 |l). | platfor|
|00004df0| 6d 4e 6f 64 65 20 3d 20 | 27 6d 61 63 27 3b 0a 20 |mNode = |'mac';. |
|00004e00| 20 20 20 65 6c 73 65 20 | 69 66 28 66 4f 53 57 69 | else |if(fOSWi|
|00004e10| 6e 20 21 3d 20 6e 75 6c | 6c 29 0a 20 20 20 20 20 |n != nul|l). |
|00004e20| 20 70 6c 61 74 66 6f 72 | 6d 4e 6f 64 65 20 3d 20 | platfor|mNode = |
|00004e30| 27 77 69 6e 27 3b 0a 20 | 20 20 20 65 6c 73 65 0a |'win';. | else.|
|00004e40| 20 20 20 20 20 20 70 6c | 61 74 66 6f 72 6d 4e 6f | pl|atformNo|
|00004e50| 64 65 20 3d 20 27 75 6e | 69 78 27 3b 0a 20 20 7d |de = 'un|ix';. }|
|00004e60| 0a 0a 20 20 72 65 74 75 | 72 6e 20 70 6c 61 74 66 |.. retu|rn platf|
|00004e70| 6f 72 6d 4e 6f 64 65 3b | 0a 7d 0a 0a 76 61 72 20 |ormNode;|.}..var |
|00004e80| 65 72 72 20 3d 20 69 6e | 69 74 49 6e 73 74 61 6c |err = in|itInstal|
|00004e90| 6c 28 22 4f 66 66 6c 69 | 6e 65 20 53 75 70 70 6f |l("Offli|ne Suppo|
|00004ea0| 72 74 22 2c 20 22 4f 66 | 66 6c 69 6e 65 22 2c 20 |rt", "Of|fline", |
|00004eb0| 22 31 2e 30 22 29 3b 20 | 0a 6c 6f 67 43 6f 6d 6d |"1.0"); |.logComm|
|00004ec0| 65 6e 74 28 22 69 6e 69 | 74 49 6e 73 74 61 6c 6c |ent("ini|tInstall|
|00004ed0| 3a 20 22 20 2b 20 65 72 | 72 29 3b 0a 0a 2f 2f 20 |: " + er|r);..// |
|00004ee0| 4f 66 66 6c 69 6e 65 20 | 45 78 74 65 6e 73 69 6f |Offline |Extensio|
|00004ef0| 6e 0a 0a 76 61 72 20 66 | 50 72 6f 67 72 61 6d 20 |n..var f|Program |
|00004f00| 3d 20 67 65 74 46 6f 6c | 64 65 72 28 22 50 72 6f |= getFol|der("Pro|
|00004f10| 67 72 61 6d 22 29 3b 0a | 6c 6f 67 43 6f 6d 6d 65 |gram");.|logComme|
|00004f20| 6e 74 28 22 66 50 72 6f | 67 72 61 6d 3a 20 22 20 |nt("fPro|gram: " |
|00004f30| 2b 20 66 50 72 6f 67 72 | 61 6d 29 3b 0a 0a 65 72 |+ fProgr|am);..er|
|00004f40| 72 20 3d 20 61 64 64 44 | 69 72 65 63 74 6f 72 79 |r = addD|irectory|
|00004f50| 28 22 22 2c 20 22 31 2e | 30 22 2c 20 22 62 69 6e |("", "1.|0", "bin|
|00004f60| 22 2c 20 66 50 72 6f 67 | 72 61 6d 2c 20 22 22 2c |", fProg|ram, "",|
|00004f70| 20 74 72 75 65 29 3b 0a | 6c 6f 67 43 6f 6d 6d 65 | true);.|logComme|
|00004f80| 6e 74 28 22 61 64 64 44 | 69 72 65 63 74 6f 72 79 |nt("addD|irectory|
|00004f90| 3a 20 22 20 2b 20 65 72 | 72 29 3b 0a 0a 76 61 72 |: " + er|r);..var|
|00004fa0| 20 6a 61 72 46 6f 6c 64 | 65 72 20 3d 20 67 65 74 | jarFold|er = get|
|00004fb0| 46 6f 6c 64 65 72 28 22 | 43 68 72 6f 6d 65 22 2c |Folder("|Chrome",|
|00004fc0| 20 22 6f 66 66 6c 69 6e | 65 2e 6a 61 72 22 29 3b | "offlin|e.jar");|
|00004fd0| 0a 0a 72 65 67 69 73 74 | 65 72 43 68 72 6f 6d 65 |..regist|erChrome|
|00004fe0| 28 50 41 43 4b 41 47 45 | 20 7c 20 44 45 4c 41 59 |(PACKAGE| | DELAY|
|00004ff0| 45 44 5f 43 48 52 4f 4d | 45 2c 20 6a 61 72 46 6f |ED_CHROM|E, jarFo|
|00005000| 6c 64 65 72 2c 20 22 63 | 6f 6e 74 65 6e 74 2f 6d |lder, "c|ontent/m|
|00005010| 65 73 73 65 6e 67 65 72 | 2d 6f 66 66 6c 69 6e 65 |essenger|-offline|
|00005020| 2f 22 29 3b 0a 0a 65 72 | 72 20 3d 20 67 65 74 4c |/");..er|r = getL|
|00005030| 61 73 74 45 72 72 6f 72 | 28 29 3b 0a 69 66 20 28 |astError|();.if (|
|00005040| 65 72 72 3d 3d 53 55 43 | 43 45 53 53 29 0a 20 20 |err==SUC|CESS). |
|00005050| 20 20 70 65 72 66 6f 72 | 6d 49 6e 73 74 61 6c 6c | perfor|mInstall|
|00005060| 28 29 3b 20 0a 65 6c 73 | 65 0a 20 20 20 20 63 61 |(); .els|e. ca|
|00005070| 6e 63 65 6c 49 6e 73 74 | 61 6c 6c 28 65 72 72 29 |ncelInst|all(err)|
|00005080| 3b 0a 50 4b 01 02 17 03 | 0a 00 00 00 00 00 2c 3c |;.PK....|......,<|
|00005090| 86 31 00 00 00 00 00 00 | 00 00 00 00 00 00 04 00 |.1......|........|
|000050a0| 0d 00 00 00 00 00 00 00 | 10 00 ed 41 00 00 00 00 |........|...A....|
|000050b0| 62 69 6e 2f 55 54 05 00 | 03 c3 7b b4 41 55 78 00 |bin/UT..|..{.AUx.|
|000050c0| 00 50 4b 01 02 17 03 0a | 00 00 00 00 00 2c 3c 86 |.PK.....|.....,<.|
|000050d0| 31 00 00 00 00 00 00 00 | 00 00 00 00 00 0b 00 0d |1.......|........|
|000050e0| 00 00 00 00 00 00 00 10 | 00 ed 41 37 00 00 00 62 |........|..A7...b|
|000050f0| 69 6e 2f 63 68 72 6f 6d | 65 2f 55 54 05 00 03 c3 |in/chrom|e/UT....|
|00005100| 7b b4 41 55 78 00 00 50 | 4b 01 02 17 03 0a 00 00 |{.AUx..P|K.......|
|00005110| 00 00 00 2c 3c 86 31 90 | 13 1c 26 19 45 00 00 19 |...,<.1.|..&.E...|
|00005120| 45 00 00 16 00 0d 00 00 | 00 00 00 00 00 00 00 b6 |E.......|........|
|00005130| 81 75 00 00 00 62 69 6e | 2f 63 68 72 6f 6d 65 2f |.u...bin|/chrome/|
|00005140| 6f 66 66 6c 69 6e 65 2e | 6a 61 72 55 54 05 00 03 |offline.|jarUT...|
|00005150| c3 7b b4 41 55 78 00 00 | 50 4b 01 02 17 03 0a 00 |.{.AUx..|PK......|
|00005160| 00 00 00 00 33 3c 86 31 | d8 b9 c1 4d 6e 0a 00 00 |....3<.1|...Mn...|
|00005170| 6e 0a 00 00 0a 00 0d 00 | 00 00 00 00 00 00 00 00 |n.......|........|
|00005180| b6 81 d7 45 00 00 69 6e | 73 74 61 6c 6c 2e 6a 73 |...E..in|stall.js|
|00005190| 55 54 05 00 03 d2 7b b4 | 41 55 78 00 00 50 4b 05 |UT....{.|AUx..PK.|
|000051a0| 06 00 00 00 00 04 00 04 | 00 1b 01 00 00 82 50 00 |........|......P.|
|000051b0| 00 00 00 | |... | |
+--------+-------------------------+-------------------------+--------+--------+